mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
oops, openStreamFile of course uses milliseconds, not frames, for the playback offsets/durations
svn-id: r26475
This commit is contained in:
parent
22f325af94
commit
624b57db3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user