src/media/audio/drivers/test/admin_test.cc
// As mentioned above, a previous callback might be dispatched and pending, so we 'nerf' it by
// clearing watch_for_next_position_notification_. Either way, we register a callback that does not
// register for another notification nor contribute to position calculations or notification counts.
As mentioned above, a previous callback might be dispatched and pending, so we 'nerf' it by
clearing watch_for_next_position_notification_. Either way, we register a callback that does not
register for another notification nor contribute to position calculations or notification counts.
As mentioned above a previous callback might be dispatched and pending so we ' nerf ' it by clearing watch_for_next_position_notification_ . Either way we register a callback that does not register for another notification nor contribute to position calculations or notification counts .
void AdminTest::ClearPositionNotification() {
  if (device_access_denied()) {
    return;
  }
  watch_for_next_position_notification_ = false;
  ring_buffer_->WatchClockRecoveryPositionInfo(
      [](fuchsia::hardware::audio::RingBufferPositionInfo) {});
}
void AdminTest :: ClearPositionNotification ( ) { if ( device_access_denied ( ) ) { return ; } watch_for_next_position_notification_ = false ; ring_buffer_ -> WatchClockRecoveryPositionInfo ( [ ] ( fuchsia :: hardware :: audio :: RingBufferPositionInfo ) { } ) ; }
As mentioned above, a previous callback might be dispatched and pending, so we 'nerf' it by
clearing watch_for_next_position_notification_.
As mentioned above a previous callback might be dispatched and pending so we ' nerf ' it by clearing watch_for_next_position_notification_ .