summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-14 22:48:34 +0000
committerrubidium <rubidium@openttd.org>2009-09-14 22:48:34 +0000
commit4dfef325ce884cf3521ccc4c829d75ce8ce65136 (patch)
treeff567c23e7640a9e804bc258e67fea305df3e137
parent5ef54ed4f9a57c9808a3ab96aafbb4f8186ceb49 (diff)
downloadopenttd-4dfef325ce884cf3521ccc4c829d75ce8ce65136.tar.xz
(svn r17543) -Fix [FS#3200]: allegro's sound output was worse than excepted
-rw-r--r--src/sound/allegro_s.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound/allegro_s.cpp b/src/sound/allegro_s.cpp
index 97b8b852c..4556e0899 100644
--- a/src/sound/allegro_s.cpp
+++ b/src/sound/allegro_s.cpp
@@ -24,7 +24,7 @@ static FSoundDriver_Allegro iFSoundDriver_Allegro;
/** The stream we are writing too */
static AUDIOSTREAM *_stream = NULL;
/** The number of samples in the buffer */
-static const int BUFFER_SIZE = 512;
+static const int BUFFER_SIZE = 4096;
void SoundDriver_Allegro::MainLoop()
{
@@ -65,7 +65,7 @@ const char *SoundDriver_Allegro::Start(const char * const *parm)
}
_stream = play_audio_stream(BUFFER_SIZE, 16, true, 44100, 255, 128);
- MxInitialize(11025);
+ MxInitialize(44100);
return NULL;
}