diff --git a/src/sound.c b/src/sound.c index 127fe0a..99c425f 100644 --- a/src/sound.c +++ b/src/sound.c @@ -119,7 +119,7 @@ static void voice_rm(alVoice* prev, alVoice* voice); static void voice_parseFlags(alVoice* voice, const unsigned int flags); int sound_init(void) { - int mem, ret = 0; + int mem, ret; ALenum err; ret = 0; @@ -132,6 +132,7 @@ int sound_init(void) { alutInitWithoutContext(NULL, NULL); const ALchar* device = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER); + /* Open the default device. */ al_device = alcOpenDevice(NULL); if(al_device == NULL) { @@ -159,7 +160,7 @@ int sound_init(void) { } /* Set the master gain. */ - alListenerf(AL_GAIN, .1); + alListenerf(AL_GAIN, 1.); /* Set the distance model. */ alDistanceModel(AL_INVERSE_DISTANCE_CLAMPED);