Reset Qt GUI audio buffer samples to zero when killing SDL sound.
This commit is contained in:
parent
37bf5c9bf2
commit
ec4d76707c
|
@ -42,7 +42,7 @@ static unsigned int s_BufferSize50;
|
|||
static unsigned int s_BufferSize75;
|
||||
static unsigned int s_BufferRead;
|
||||
static unsigned int s_BufferWrite;
|
||||
static volatile unsigned int s_BufferIn;
|
||||
static volatile unsigned int s_BufferIn = 0;
|
||||
static unsigned int s_SampleRate = 44100;
|
||||
static double noiseGate = 0.0;
|
||||
static double noiseGateRate = 0.010;
|
||||
|
@ -520,6 +520,7 @@ KillSound(void)
|
|||
free((void *)s_Buffer);
|
||||
s_Buffer = 0;
|
||||
}
|
||||
s_BufferIn = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue