fixed last commit

This commit is contained in:
oy 2019-02-04 11:16:48 +01:00
parent 359f327537
commit a570538bad

View file

@ -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<IEngineGraphics>();
m_pStorage = Kernel()->RequestInterface<IStorage>();