ScheduleAudioSamples outside of RenderAudioSamples callback

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message


  • Posts: 13
  • Joined: Tue Nov 05, 2013 3:10 pm

ScheduleAudioSamples outside of RenderAudioSamples callback

PostFri Oct 12, 2018 7:06 am

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...

Cameron Nichols

Blackmagic Design

  • Posts: 235
  • Joined: Mon Sep 04, 2017 4:05 am

Re: ScheduleAudioSamples outside of RenderAudioSamples callb

PostThu Oct 18, 2018 1:14 am

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.


Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests