shithub: cstory

Download patch

ref: 051d12f4347a37ac720bb20107ca5d295235e538
parent: 5bcc0ec393f7d07f66eed47966400c8ecef77d81
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Apr 17 19:47:45 EDT 2020

Stop shouldn't rewind the sound

According to the DirectSound docs, stop doesn't rewind.

https://docs.microsoft.com/en-us/previous-versions/ms817375%28v%3dmsdn.10%29

--- a/src/Backends/Audio/SoftwareMixer.cpp
+++ b/src/Backends/Audio/SoftwareMixer.cpp
@@ -103,7 +103,6 @@
 void Mixer_StopSound(Mixer_Sound *sound)
 {
 	sound->playing = false;
-	sound->position = 0.0;
 }
 
 void Mixer_RewindSound(Mixer_Sound *sound)