summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-07 13:49:18 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-07 13:49:18 +0000
commit112fbe319f1e9070e9b6b62a7ec12d625a19be51 (patch)
tree62572ba750a8fb8d37d2f63a69f282d8590f4c31 /src/sound.cpp
parent682be63061b2134cd3bc8b272fd3180e82437bb9 (diff)
downloadmana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.gz
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.bz2
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.tar.xz
mana-112fbe319f1e9070e9b6b62a7ec12d625a19be51.zip
* 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
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp4
1 files changed, 2 insertions, 2 deletions
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;