From 61db1f370d1e918ccc89bed76ccdc5af2883a774 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Wed, 6 Apr 2005 13:54:11 +0000 Subject: Following a suggestion from the SDL irc channel to fix sound rcash bug. --- src/sound.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/sound.cpp') 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) -- cgit v1.2.3-70-g09d2