mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-01 07:46:11 +00:00
Changed the UNIX line breaks.
Fixed the problem where the lookout music didn't play in the MI1CD intro. At least, I *think* I fixed it. It worked at home, but I can't test it on this particular computer. svn-id: r13515
This commit is contained in:
parent
c2e0647f6a
commit
86a5466526
@ -771,14 +771,17 @@ void FlacTrackInfo::play(SoundMixer *mixer, PlayingSoundHandle *handle, int star
|
||||
|
||||
if (flac->isStreamDecoderReady()) {
|
||||
const FLAC__StreamMetadata_StreamInfo &info = flac->getStreamInfo();
|
||||
flac->setLastSample(static_cast<FLAC__uint64>(startFrame + duration) * (info.sample_rate / 75));
|
||||
if (duration)
|
||||
flac->setLastSample(static_cast<FLAC__uint64>(startFrame + duration) * (info.sample_rate / 75));
|
||||
else
|
||||
flac->setLastSample(0);
|
||||
|
||||
if (flac->seekAbsolute(static_cast<FLAC__uint64>(startFrame) * (info.sample_rate / 75))) {
|
||||
mixer->playInputStream(handle, flac, true);
|
||||
return;
|
||||
}
|
||||
// startSample is beyond the existing Samples
|
||||
debug(1, "FlacTrackInfo: Audiostream %s coud not seek to frame %d (ca %d secs)", _file->name(), startFrame, startFrame/75);
|
||||
debug(1, "FlacTrackInfo: Audiostream %s could not seek to frame %d (ca %d secs)", _file->name(), startFrame, startFrame/75);
|
||||
flac->finish();
|
||||
}
|
||||
delete flac;
|
||||
|
Loading…
x
Reference in New Issue
Block a user