[Scummvm-cvs-logs] SF.net SVN: scummvm:[33531] scummvm/branches/branch-0-12-0/engines/kyra/ sound_towns.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Sat Aug 2 18:12:33 CEST 2008
Revision: 33531
http://scummvm.svn.sourceforge.net/scummvm/?rev=33531&view=rev
Author: athrxx
Date: 2008-08-02 16:12:32 +0000 (Sat, 02 Aug 2008)
Log Message:
-----------
HOF: backport bug fix for FM-Towns music when using output rates other than 22050 khz
Modified Paths:
--------------
scummvm/branches/branch-0-12-0/engines/kyra/sound_towns.cpp
Modified: scummvm/branches/branch-0-12-0/engines/kyra/sound_towns.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/kyra/sound_towns.cpp 2008-08-02 15:59:38 UTC (rev 33530)
+++ scummvm/branches/branch-0-12-0/engines/kyra/sound_towns.cpp 2008-08-02 16:12:32 UTC (rev 33531)
@@ -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