Right now, I believe stopping a sound merely pauses it. If you play that same sound buffer, it will start off where it last stopped.
You will need to add an extra line:
BEFORE:
AFTER:
This will also mean you need to alter 'CDirectSoundAudioBuffer::VTogglePause' appropriately... maybe add a CDirectSoundAudioBuffer::VPause function to complement the VStop function.
You will need to add an extra line:
BEFORE:
AFTER:
This will also mean you need to alter 'CDirectSoundAudioBuffer::VTogglePause' appropriately... maybe add a CDirectSoundAudioBuffer::VPause function to complement the VStop function.