mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Adapt digital iMuse to use SeekableAudioStream::seek, instead of ryling on the deprecated FLAC, Vorbis and MP3 interface.
svn-id: r47064
This commit is contained in:
parent
fb9017c51e
commit
5243157eb1
@ -704,17 +704,18 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte
|
||||
assert(tmp);
|
||||
#ifdef USE_FLAC
|
||||
if (soundMode == 3)
|
||||
soundDesc->compressedStream = Audio::makeFlacStream(tmp, true, offsetMs, 0, 1);
|
||||
soundDesc->compressedStream = Audio::makeFlacStream(tmp, true);
|
||||
#endif
|
||||
#ifdef USE_VORBIS
|
||||
if (soundMode == 2)
|
||||
soundDesc->compressedStream = Audio::makeVorbisStream(tmp, true, offsetMs, 0, 1);
|
||||
soundDesc->compressedStream = Audio::makeVorbisStream(tmp, true);
|
||||
#endif
|
||||
#ifdef USE_MAD
|
||||
if (soundMode == 1)
|
||||
soundDesc->compressedStream = Audio::makeMP3Stream(tmp, true, offsetMs, 0, 1);
|
||||
soundDesc->compressedStream = Audio::makeMP3Stream(tmp, true);
|
||||
#endif
|
||||
assert(soundDesc->compressedStream);
|
||||
soundDesc->compressedStream->seek(offsetMs);
|
||||
}
|
||||
strcpy(soundDesc->lastFileName, fileName);
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
int type;
|
||||
int volGroupId;
|
||||
int disk;
|
||||
Audio::AudioStream *compressedStream;
|
||||
Audio::SeekableAudioStream *compressedStream;
|
||||
bool compressed;
|
||||
char lastFileName[24];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user