diff options
author | Henry Bush | 2009-02-15 19:52:44 +0000 |
---|---|---|
committer | Henry Bush | 2009-02-15 19:52:44 +0000 |
commit | d7dea4ff17cd5ee6737cbe50e5d47c13e946f86c (patch) | |
tree | 25e670e1e6800c1a47c6161769443f8bc27f5583 /engines/groovie/music.cpp | |
parent | c137d7578437b8bac9bc0e6f3965f37f0d9af17c (diff) | |
download | scummvm-rg350-d7dea4ff17cd5ee6737cbe50e5d47c13e946f86c.tar.gz scummvm-rg350-d7dea4ff17cd5ee6737cbe50e5d47c13e946f86c.tar.bz2 scummvm-rg350-d7dea4ff17cd5ee6737cbe50e5d47c13e946f86c.zip |
T7G: Fix for #2511456. Volume is now only reset to 100 on playing a new track, and the background track starts on beginning of input loop (not at end of main track).
svn-id: r38284
Diffstat (limited to 'engines/groovie/music.cpp')
-rw-r--r-- | engines/groovie/music.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/groovie/music.cpp b/engines/groovie/music.cpp index c69ab69827..8ae97b175c 100644 --- a/engines/groovie/music.cpp +++ b/engines/groovie/music.cpp @@ -95,6 +95,8 @@ MusicPlayer::~MusicPlayer() { void MusicPlayer::playSong(uint16 fileref) { Common::StackLock lock(_mutex); + _fadingEndVolume = 100; + _gameVolume = 100; // Play the referenced file once play(fileref, false); } @@ -185,7 +187,6 @@ void MusicPlayer::startBackground() { void MusicPlayer::endTrack() { debugC(3, kGroovieDebugMIDI | kGroovieDebugAll, "Groovie::Music: endTrack()"); unload(); - startBackground(); } void MusicPlayer::applyFading() { @@ -207,7 +208,6 @@ void MusicPlayer::applyFading() { // If we were fading to 0, stop the playback and restore the volume if (_fadingEndVolume == 0) { debugC(1, kGroovieDebugMIDI | kGroovieDebugAll, "Groovie::Music: Faded to zero: end of song. _fadingEndVolume set to 100"); - _fadingEndVolume = 100; unload(); } } @@ -239,7 +239,6 @@ bool MusicPlayer::play(uint16 fileref, bool loop) { // Set the looping option _midiParser->property(MidiParser::mpAutoLoop, loop); - _gameVolume = 100; _isPlaying = true; // Load the new file |