diff options
author | Max Horn | 2007-04-14 18:44:15 +0000 |
---|---|---|
committer | Max Horn | 2007-04-14 18:44:15 +0000 |
commit | 624b57db3a421c3589e069c86253dfc6dea1f5cf (patch) | |
tree | 3f28609f9a59157fa5f950e6f8bcf8b1b5696173 /engines/saga/music.cpp | |
parent | 22f325af94007cc0e1722cf1e105dc191eeae684 (diff) | |
download | scummvm-rg350-624b57db3a421c3589e069c86253dfc6dea1f5cf.tar.gz scummvm-rg350-624b57db3a421c3589e069c86253dfc6dea1f5cf.tar.bz2 scummvm-rg350-624b57db3a421c3589e069c86253dfc6dea1f5cf.zip |
oops, openStreamFile of course uses milliseconds, not frames, for the playback offsets/durations
svn-id: r26475
Diffstat (limited to 'engines/saga/music.cpp')
-rw-r--r-- | engines/saga/music.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp index 89d3bbd38e..0126e79b6b 100644 --- a/engines/saga/music.cpp +++ b/engines/saga/music.cpp @@ -393,8 +393,9 @@ void Music::play(uint32 resourceId, MusicFlags flags) { sprintf(trackName[1], "track%02d", realTrackNumber); Audio::AudioStream *stream = 0; for (int i = 0; i < 2; ++i) { + // We multiply by 40 / 3 = 1000 / 75 to convert frames to milliseconds // FIXME: Do we really want a duration of 10000 frames = 133 seconds, or is that just a random value? - stream = Audio::AudioStream::openStreamFile(trackName[i], 0, 10000, (flags == MUSIC_LOOP) ? 0 : 1); + stream = Audio::AudioStream::openStreamFile(trackName[i], 0, 10000 * 40 / 3, (flags == MUSIC_LOOP) ? 0 : 1); if (stream) { _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_musicHandle, stream); return; |