diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-06 13:54:11 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-06 13:54:11 +0000 |
commit | 61db1f370d1e918ccc89bed76ccdc5af2883a774 (patch) | |
tree | f0ac0281fbb924e749b966a58d71e210e774c3f0 /src/sound.cpp | |
parent | 450e65880198ed083e72a6ac85646410a935e084 (diff) | |
download | mana-61db1f370d1e918ccc89bed76ccdc5af2883a774.tar.gz mana-61db1f370d1e918ccc89bed76ccdc5af2883a774.tar.bz2 mana-61db1f370d1e918ccc89bed76ccdc5af2883a774.tar.xz mana-61db1f370d1e918ccc89bed76ccdc5af2883a774.zip |
Following a suggestion from the SDL
irc channel to fix sound rcash bug.
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 0013cb21..57d93b3a 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -33,7 +33,8 @@ void Sound::init(int voices, int mod_voices) bgm = NULL; int audio_rate = 44100; Uint16 audio_format = AUDIO_S16; // 16-bit stereo - int audio_channels = 2; + //int audio_channels = 2; + int audio_channels = 8; // Default int audio_buffers = 4096; if (Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers)) @@ -51,7 +52,9 @@ void Sound::init(int voices, int mod_voices) items = -1; isOk = 0; - logger.log("Sound::Init() Initializing Sound"); + logger.log("Sound::init() Initializing Sound"); + logger.log("Sound::init() Spec: %i %i %i", audio_rate, audio_format, + audio_channels); } void Sound::setVolume(int music) |