mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
MOHAWK: Remove 'old' from the LB v1 sound function too
This commit is contained in:
parent
bc1c84e6c8
commit
50a35193c9
@ -90,11 +90,11 @@ Audio::AudioStream *Sound::makeAudioStream(uint16 id, CueList *cueList) {
|
||||
audStream = makeMohawkWaveStream(_vm->getResource(ID_SND, id));
|
||||
break;
|
||||
case GType_LIVINGBOOKSV1:
|
||||
audStream = makeOldMohawkWaveStream(_vm->getResource(ID_WAV, id));
|
||||
audStream = makeLivingBooksWaveStream_v1(_vm->getResource(ID_WAV, id));
|
||||
break;
|
||||
case GType_LIVINGBOOKSV2:
|
||||
if (_vm->getPlatform() == Common::kPlatformMacintosh) {
|
||||
audStream = makeOldMohawkWaveStream(_vm->getResource(ID_WAV, id));
|
||||
audStream = makeLivingBooksWaveStream_v1(_vm->getResource(ID_WAV, id));
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
@ -493,7 +493,7 @@ Audio::AudioStream *Sound::makeMohawkWaveStream(Common::SeekableReadStream *stre
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Audio::AudioStream *Sound::makeOldMohawkWaveStream(Common::SeekableReadStream *stream) {
|
||||
Audio::AudioStream *Sound::makeLivingBooksWaveStream_v1(Common::SeekableReadStream *stream) {
|
||||
uint16 header = stream->readUint16BE();
|
||||
uint16 rate = 0;
|
||||
uint32 size = 0;
|
||||
|
@ -158,7 +158,7 @@ private:
|
||||
byte *_midiData;
|
||||
|
||||
static Audio::AudioStream *makeMohawkWaveStream(Common::SeekableReadStream *stream, CueList *cueList = NULL);
|
||||
static Audio::AudioStream *makeOldMohawkWaveStream(Common::SeekableReadStream *stream);
|
||||
static Audio::AudioStream *makeLivingBooksWaveStream_v1(Common::SeekableReadStream *stream);
|
||||
void initMidi();
|
||||
|
||||
Common::Array<SndHandle> _handles;
|
||||
|
Loading…
x
Reference in New Issue
Block a user