Community
cancel
Showing results for 
Search instead for 
Did you mean: 
skorolev
Beginner
55 Views

DSoundAudioRender continuously repeats the latest sample

Hello,

I am using DSoundAudioRender to play uncompressed PCM audio supplied in blocks of one PAL frame (40ms). Audio data is passed to the renderer via SendFrame() method.
If I do not supply a successive frame, the lastest sample is being repeatedly rerenderered.

What is the better way to tell the renderer to play each sample one time only?

Thanks

Serge
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
55 Views

Hello,

It's impossible because DS buffer is a cyclic buffer. It constantly plays until you call Stop.


Regards,
Vladimir
skorolev
Beginner
55 Views

Thank you, Vladimir!

Searching through this forum I found a similar issue dated back to 2006. At the time, it was suggested to use WinMMAudioRender which is absent in the current version of IPP.
Is it still possible to avoid the looping by utilizing another audio renderer included in the library?

Serge
Vladimir_Dudnik
Employee
55 Views


Serge, you may get missed renderers from previous version of IPP sample. Although some massaging might be needed for the code to adopt to the latest version.

Regards,
Vladimir
Reply