src/media/audio/drivers/as370-tdm-output/audio-stream-out.cc
// Timer handler for sending out position notifications.
Timer handler for sending out position notifications.
Timer handler for sending out position notifications .
void As370AudioStreamOut::ProcessRingNotification() {
  ScopedToken t(domain_token());
  ZX_ASSERT(us_per_notification_ != 0);
  notify_timer_.PostDelayed(dispatcher(), zx::usec(us_per_notification_));
  audio_proto::RingBufPositionNotify resp = {};
  resp.hdr.cmd = AUDIO_RB_POSITION_NOTIFY;
  resp.monotonic_time = zx::clock::get_monotonic().get();
  resp.ring_buffer_pos = lib_->GetRingPosition();
  NotifyPosition(resp);
}
void As370AudioStreamOut :: ProcessRingNotification ( ) { ScopedToken t ( domain_token ( ) ) ; ZX_ASSERT ( us_per_notification_ != 0 ) ; notify_timer_ . PostDelayed ( dispatcher ( ) , zx :: usec ( us_per_notification_ ) ) ; audio_proto :: RingBufPositionNotify resp = { } ; resp . hdr . cmd = AUDIO_RB_POSITION_NOTIFY ; resp . monotonic_time = zx :: clock :: get_monotonic ( ) . get ( ) ; resp . ring_buffer_pos = lib_ -> GetRingPosition ( ) ; NotifyPosition ( resp ) ; }
Timer handler for sending out position notifications.
Timer handler for sending out position notifications .