More corrections to the VAR_MUSIC_TIMER

computations, mostly to produce the
exptected output with AD resources.

svn-id: r9730
This commit is contained in:
Jamieson Christian 2003-08-16 17:08:22 +00:00
parent 61162bf359
commit d7fae3d1cb
6 changed files with 35 additions and 23 deletions

View file

@ -128,8 +128,8 @@ bool Player::startSound(int sound, MidiDriver *midi) {
return true;
}
uint32 Player::getMusicTimer() {
return _parser ? _parser->getTime() : 0;
int Player::getMusicTimer() {
return _parser ? (_parser->getTick() * 2 / _parser->getPPQN()) : 0;
}
bool Player::isFadingOut() {