Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6704 Discussions

DSoundAudioRender continuously repeats the latest sample

skorolev
Beginner
303 Views
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
303 Views
Hello,

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


Regards,
Vladimir
0 Kudos
skorolev
Beginner
303 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
0 Kudos
Vladimir_Dudnik
Employee
303 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
0 Kudos
Reply