[Scummvm-cvs-logs] SF.net SVN: scummvm:[34088] scummvm/branches/branch-0-12-0/engines/kyra/ sound_towns.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Thu Aug 21 20:25:52 CEST 2008
Revision: 34088
http://scummvm.svn.sourceforge.net/scummvm/?rev=34088&view=rev
Author: athrxx
Date: 2008-08-21 18:25:51 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
KYRA: Towns/PC-98-Audio: (backport) fixed bug where notes for which the hold flag was set were turned off nonetheless
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-21 18:24:52 UTC (rev 34087)
+++ scummvm/branches/branch-0-12-0/engines/kyra/sound_towns.cpp 2008-08-21 18:25:51 UTC (rev 34088)
@@ -1111,6 +1111,7 @@
protected:
EnvelopeState _state;
+ bool _playing;
uint32 _feedbackLevel;
uint32 _multiple;
uint32 _totalLevel;
@@ -1159,11 +1160,19 @@
}
void TownsPC98_OpnOperator::keyOn() {
+ if (_playing)
+ return;
+
+ _playing = true;
_state = s_attacking;
_phase = 0;
}
void TownsPC98_OpnOperator::keyOff() {
+ if (!_playing)
+ return;
+
+ _playing = false;
if (_state != s_ready)
_state = s_releasing;
}
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