From a570538bad5842929d1bd7e0a90dcc040809e1c8 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 4 Feb 2019 11:16:48 +0100 Subject: [PATCH] fixed last commit --- src/engine/client/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();