GetBufferedAudioSampleFrameCount Linux Issue

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

Dmitry Dudkin

  • Posts: 3
  • Joined: Wed Jan 17, 2018 3:58 am

GetBufferedAudioSampleFrameCount Linux Issue

PostThu Jul 26, 2018 11:31 pm

Hello,

I have problem with GetBufferedAudioSampleFrameCount under Linux on latest drivers and SDK. My program trying to keep audio buffer at 2400 samples level. On RenderAudioSamples I have a loop that call GetBufferedAudioSampleFrameCount and if buffered samples less than 2300 then it write another 240 samples. Also to correct output frequency difference my app drop 1 sample every about 113000 samples. Everything works fine for hours but twice per day I have an issue - GetBufferedAudioSampleFrameCount result increased from about 1500 to 3300-4500 . And it is happened in my loop in less than 1ms. Before writing 240 samples it was 1500 but next GetBufferedAudioSampleFrameCount just after write 240 samples return 3300-4500.
I guess that it can be related with NTP adjustments. Looks like Decklink SDK/driver use non monotonic timer. How I can fix it?

Dmitry
Offline

Dmitry Dudkin

  • Posts: 3
  • Joined: Wed Jan 17, 2018 3:58 am

Re: GetBufferedAudioSampleFrameCount Linux Issue

PostSun Jul 29, 2018 2:39 pm

Every time when it happen first GetBufferedAudioSampleFrameCount reports that audio buffer level is 0. But next call GetBufferedAudioSampleFrameCount jumps to about 4000 samples.

Return to Software Developers

Who is online

Users browsing this forum: roger.magnusson and 15 guests