mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed last commit
This commit is contained in:
parent
359f327537
commit
a570538bad
|
@ -54,8 +54,6 @@ struct CVoice
|
||||||
static CSample m_aSamples[NUM_SAMPLES] = {0};
|
static CSample m_aSamples[NUM_SAMPLES] = {0};
|
||||||
static CVoice m_aVoices[NUM_VOICES] = {0};
|
static CVoice m_aVoices[NUM_VOICES] = {0};
|
||||||
static CChannel m_aChannels[NUM_CHANNELS];
|
static CChannel m_aChannels[NUM_CHANNELS];
|
||||||
for(int i = 0; i < NUM_CHANNELS; ++i)
|
|
||||||
m_aChannels[i] = 255;
|
|
||||||
|
|
||||||
static LOCK m_SoundLock = 0;
|
static LOCK m_SoundLock = 0;
|
||||||
|
|
||||||
|
@ -205,6 +203,9 @@ static void SdlCallback(void *pUnused, Uint8 *pStream, int Len)
|
||||||
|
|
||||||
int CSound::Init()
|
int CSound::Init()
|
||||||
{
|
{
|
||||||
|
for(int i = 0; i < NUM_CHANNELS; ++i)
|
||||||
|
m_aChannels[i].m_Vol = 255;
|
||||||
|
|
||||||
m_SoundEnabled = 0;
|
m_SoundEnabled = 0;
|
||||||
m_pGraphics = Kernel()->RequestInterface<IEngineGraphics>();
|
m_pGraphics = Kernel()->RequestInterface<IEngineGraphics>();
|
||||||
m_pStorage = Kernel()->RequestInterface<IStorage>();
|
m_pStorage = Kernel()->RequestInterface<IStorage>();
|
||||||
|
|
Loading…
Reference in a new issue