locked
Dynamic Effects while Playing Direct Sound Buffer RRS feed

  • Question

  • Hi, I'm playing a Direct Sound Secondary Buffer on my sound card. I'd now like to apply effects to this buffer and control these effects in real-time using sliders. The problem is that SetFX only works on non-playing buffers- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/IDirectSoundBuffer8__SetFX.asp I have tried stopping the buffer, changing the effect, and then playing the buffer again, but I get glitches when I do so. Even if I comment out the setFX function I still get glitches. How should I be doing this? Thanks for your help, Barry.
    Sunday, August 20, 2006 8:37 AM

All replies

  • Hi,

    To enable/disable an effect you must stop the buffer, but to change parameters of an effect you don't. See the example SoundFX of DirectX SDK to understand how to do this.

    Two cents,

    AGPX
    Sunday, August 20, 2006 11:07 AM