Searched refs:rb_sz_ (Results 1 – 4 of 4) sorted by relevance
| /system/ulib/audio-utils/ |
| A D | audio-output.cpp | 63 memset(rb_virt_, 0, rb_sz_); in Play() 80 uint32_t space = (rb_sz_ + rd - wr - 1) % rb_sz_; in Play() 81 uint32_t todo = fbl::min(space, rb_sz_ - wr); in Play() 82 ZX_DEBUG_ASSERT(space < rb_sz_); in Play() 94 res = source.GetFrames(buf + wr, fbl::min(space, rb_sz_ - wr), &done); in Play() 104 playout_amt = (rb_sz_ + wr - rd) % rb_sz_; in Play() 113 if (wr < rb_sz_) in Play() 116 ZX_DEBUG_ASSERT(wr == rb_sz_); in Play() 173 uint32_t dist = (rb_sz_ + rd - playout_rd) % rb_sz_; in Play()
|
| A D | audio-input.cpp | 127 uint32_t todo = pos_notif.ring_buffer_pos + rb_sz_ - rd_ptr; in Record() 128 if (todo >= rb_sz_) in Record() 129 todo -= rb_sz_; in Record() 131 ZX_DEBUG_ASSERT(todo < rb_sz_); in Record() 132 ZX_DEBUG_ASSERT(rd_ptr < rb_sz_); in Record() 134 uint32_t space = rb_sz_ - rd_ptr; in Record() 152 ZX_DEBUG_ASSERT(amt < rb_sz_); in Record() 169 if (rd_ptr >= rb_sz_) { in Record() 170 ZX_DEBUG_ASSERT(rd_ptr == rb_sz_); in Record()
|
| A D | audio-device-stream.cpp | 565 if ((rb_sz > std::numeric_limits<decltype(rb_sz_)>::max()) || (rb_sz > rb_page_sz)) { in GetBuffer() 571 rb_sz_ = static_cast<decltype(rb_sz_)>(rb_sz); in GetBuffer() 579 0u, rb_sz_, in GetBuffer() 589 memset(rb_virt_, 0, rb_sz_); in GetBuffer() 631 ZX_DEBUG_ASSERT(rb_sz_ != 0); in ResetRingBuffer() 632 zx::vmar::root_self()->unmap(reinterpret_cast<uintptr_t>(rb_virt_), rb_sz_); in ResetRingBuffer() 636 rb_sz_ = 0; in ResetRingBuffer()
|
| /system/ulib/audio-utils/include/audio-utils/ |
| A D | audio-device-stream.h | 52 uint32_t ring_buffer_bytes() const { return rb_sz_; } in ring_buffer_bytes() 84 uint32_t rb_sz_ = 0; variable
|
Completed in 12 milliseconds