[Scummvm-cvs-logs] CVS: scummvm/backends/midi mt32.cpp,1.3,1.4

Max Horn fingolfin at users.sourceforge.net
Tue Nov 9 16:27:00 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19508/backends/midi

Modified Files:
	mt32.cpp 
Log Message:
Use the actual output rate of the sound mixer when producing MT32 audio samples -> by default only does 22.5 kHz -> it's now actually almost usable on my machine ;-). Alternative approach might be to hard code 32000 here

Index: mt32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/mt32.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mt32.cpp	8 Nov 2004 10:16:07 -0000	1.3
+++ mt32.cpp	10 Nov 2004 00:25:58 -0000	1.4
@@ -153,7 +153,7 @@
 
 	_baseFreq = 1000;
 
-	_outputRate = 44100;
+	_outputRate = _mixer->getOutputRate();
 }
 
 MidiDriver_MT32::~MidiDriver_MT32() {





More information about the Scummvm-git-logs mailing list