diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp index f7e560c38..0f3561f65 100644 --- a/src/engine/client/sound.cpp +++ b/src/engine/client/sound.cpp @@ -54,8 +54,6 @@ struct CVoice static CSample m_aSamples[NUM_SAMPLES] = {0}; static CVoice m_aVoices[NUM_VOICES] = {0}; static CChannel m_aChannels[NUM_CHANNELS]; -for(int i = 0; i < NUM_CHANNELS; ++i) - m_aChannels[i] = 255; static LOCK m_SoundLock = 0; @@ -205,6 +203,9 @@ static void SdlCallback(void *pUnused, Uint8 *pStream, int Len) int CSound::Init() { + for(int i = 0; i < NUM_CHANNELS; ++i) + m_aChannels[i].m_Vol = 255; + m_SoundEnabled = 0; m_pGraphics = Kernel()->RequestInterface(); m_pStorage = Kernel()->RequestInterface();