Correction To CDirectSoundAudioBuffer::VStop

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Correction To CDirectSoundAudioBuffer::VStop

      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:

      Source Code

      1. pDSB->Stop()


      AFTER:

      Source Code

      1. pDSB->Stop()
      2. pDSB->SetCurrentPosition(0)


      This will also mean you need to alter 'CDirectSoundAudioBuffer::VTogglePause' appropriately... maybe add a CDirectSoundAudioBuffer::VPause function to complement the VStop function.
    • RE: Correction To CDirectSoundAudioBuffer::VStop

      Done and done - this mod will be in GCC 3.0.
      Mr.Mike
      Author, Programmer, Brewer, Patriot