changeset 13045:c733626647c1 draft

(svn r17543) -Fix [FS#3200]: allegro's sound output was worse than excepted
author rubidium <rubidium@openttd.org>
date Mon, 14 Sep 2009 22:48:34 +0000
parents 1f4a5608aba5
children a02317f15b22
files src/sound/allegro_s.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sound/allegro_s.cpp
+++ b/src/sound/allegro_s.cpp
@@ -24,7 +24,7 @@
 /** 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 @@
 	}
 
 	_stream = play_audio_stream(BUFFER_SIZE, 16, true, 44100, 255, 128);
-	MxInitialize(11025);
+	MxInitialize(44100);
 	return NULL;
 }