Page 1 of 1

ScheduleAudioSamples outside of RenderAudioSamples callback

PostPosted: Fri Oct 12, 2018 7:06 am
by max_verem
Is it safe to schedule timestamped audio samples outside of audio callback method? In a standalone thread for example.

I am asking this because i faced strange situation with buffering audio samples with Duo2 board (under 10.11.2a3). That situation does not happens with Duo1,Quad2 or MiniMonitor boards...

I am doing ScheduleAudioSamples and ScheduleVideoFrame in standalone thread, no errors or non-buffered audio sample, but in a three or four hours number of audio samples buffered (i get it by GetBufferedAudioSampleFrameCount call) become 0. In the same time video frames count buffered (GetBufferedVideoFrameCount) remains 12...13 as i expect.

Board it in a lock state - external reference is used...

Re: ScheduleAudioSamples outside of RenderAudioSamples callb

PostPosted: Thu Oct 18, 2018 1:14 am
by Cameron Nichols
Hi Max,

Yes it is acceptable to schedule audio samples outside of the RenderAudioSamples callback. You do need to ensure that you continue to monitor the audio buffer depth to maintain your audio water level at an equivalent level to your video preroll size.

Regards
Cameron