Dynamic Effects while Playing Direct Sound Buffer

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.

[593 byte] By [Barry79] at [2007-12-23]
# 1
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

AGPX at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...