src/media/audio/drivers/nelson-pdm-input/audio-stream-in.cc
// Timer handler for sending out position notifications.
Timer handler for sending out position notifications.
Timer handler for sending out position notifications .
void NelsonAudioStreamIn::ProcessRingNotification() {
  ScopedToken t(domain_token());
  ZX_ASSERT(notification_rate_ != zx::duration());
  notify_timer_.PostDelayed(dispatcher(), notification_rate_);
  audio_proto::RingBufPositionNotify resp = {};
  resp.hdr.cmd = AUDIO_RB_POSITION_NOTIFY;
  resp.ring_buffer_pos = lib_->GetRingPosition();
  NotifyPosition(resp);
}
void NelsonAudioStreamIn :: ProcessRingNotification ( ) { ScopedToken t ( domain_token ( ) ) ; ZX_ASSERT ( notification_rate_ != zx :: duration ( ) ) ; notify_timer_ . PostDelayed ( dispatcher ( ) , notification_rate_ ) ; audio_proto :: RingBufPositionNotify resp = { } ; resp . hdr . cmd = AUDIO_RB_POSITION_NOTIFY ; resp . ring_buffer_pos = lib_ -> GetRingPosition ( ) ; NotifyPosition ( resp ) ; }
Timer handler for sending out position notifications.
Timer handler for sending out position notifications .