From 112fbe319f1e9070e9b6b62a7ec12d625a19be51 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 7 Apr 2005 13:49:18 +0000 Subject: * Fixed crash on exit when trying to delete listbox that wasn't created. * Disabled Ok button in Buy and Sell dialog when amount is 0 * Corrected the three known map bugs --- src/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sound.cpp') diff --git a/src/sound.cpp b/src/sound.cpp index cd767ef7..cdd9de49 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -32,7 +32,7 @@ void Sound::init(int voices, int mod_voices) bgm = NULL; int audio_rate = 44100; - Uint16 audio_format = AUDIO_S16; // 16-bit stereo + Uint16 audio_format = MIX_DEFAULT_FORMAT; int audio_channels = 2; int audio_buffers = 4096; @@ -47,7 +47,7 @@ void Sound::init(int voices, int mod_voices) Mix_QuerySpec(&audio_rate, &audio_format, &audio_channels); char *format_str="Unknown"; - switch(audio_format) { + switch (audio_format) { case AUDIO_U8: format_str="U8"; break; case AUDIO_S8: format_str="S8"; break; case AUDIO_U16LSB: format_str="U16LSB"; break; -- cgit v1.2.3-70-g09d2