[Scummvm-cvs-logs] SF.net SVN: scummvm:[33523] scummvm/trunk/engines/kyra/sound_towns.cpp

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat Aug 2 16:35:38 CEST 2008


Revision: 33523
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33523&view=rev
Author:   athrxx
Date:     2008-08-02 14:35:38 +0000 (Sat, 02 Aug 2008)

Log Message:
-----------
HOF: bug fix for FM-Towns music when using output rates other than 22050 khz

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound_towns.cpp

Modified: scummvm/trunk/engines/kyra/sound_towns.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_towns.cpp	2008-08-02 14:32:05 UTC (rev 33522)
+++ scummvm/trunk/engines/kyra/sound_towns.cpp	2008-08-02 14:35:38 UTC (rev 33523)
@@ -2363,7 +2363,7 @@
 	_numSSG(type == OD_TOWNS ? 0 : 3), _hasADPCM(type == OD_TYPE86 ? true : false),
 	_numChan(type == OD_TYPE26 ? 3 : 6), _hasStereo(type == OD_TYPE26 ? false : true) {	
 	setTempo(84);
-	_baserate = (double)getRate() / 10368.0;
+	_baserate = (486202500.0 / (double)getRate()) / 10368.0;
 }
 
 TownsPC98_OpnDriver::~TownsPC98_OpnDriver() {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list