src/media/audio/drivers/test/admin_test.cc
// Ring-buffer channel requests
//
// Request that the driver return the FIFO depth (in bytes), at the currently set format.
// This method relies on the ring buffer channel.
Ring-buffer channel requests
Request that the driver return the FIFO depth (in bytes), at the currently set format.
This method relies on the ring buffer channel.
Ring - buffer channel requests Request that the driver return the FIFO depth ( in bytes ) at the currently set format . This method relies on the ring buffer channel .
void AdminTest::RequestRingBufferProperties() {
  if (device_access_denied()) {
    return;
  }
  ASSERT_TRUE(ring_buffer_ready_);
  ring_buffer_->GetProperties([this](fuchsia::hardware::audio::RingBufferProperties prop) {
    ring_buffer_props_ = std::move(prop);
    received_get_ring_buffer_properties_ = true;
  });
  RunLoopUntil([this]() { return received_get_ring_buffer_properties_ || device_access_denied(); });
}
void AdminTest :: RequestRingBufferProperties ( ) { if ( device_access_denied ( ) ) { return ; } ASSERT_TRUE ( ring_buffer_ready_ ) ; ring_buffer_ -> GetProperties ( [ this ] ( fuchsia :: hardware :: audio :: RingBufferProperties prop ) { ring_buffer_props_ = std :: move ( prop ) ; received_get_ring_buffer_properties_ = true ; } ) ; RunLoopUntil ( [ this ] ( ) { return received_get_ring_buffer_properties_ || device_access_denied ( ) ; } ) ; }
Ring-buffer channel requests
Request that the driver return the FIFO depth (in bytes), at the currently set format.
Ring - buffer channel requests Request that the driver return the FIFO depth ( in bytes ) at the currently set format .
// This command can return an error, so we check for error_occurred_ as well