mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
GROOVIE: Add a stub MPEG4 music player
This commit is contained in:
parent
50d2519552
commit
af59f33b7b
@ -151,10 +151,20 @@ Common::Error GroovieEngine::run() {
|
||||
}
|
||||
|
||||
// Create the music player
|
||||
if (getPlatform() == Common::kPlatformMacintosh)
|
||||
switch (getPlatform()) {
|
||||
case Common::kPlatformMacintosh:
|
||||
// TODO: The 11th Hour Mac uses QuickTime MIDI files
|
||||
// Right now, since the XMIDI are present and it is still detected as
|
||||
// the DOS version, we don't have to do anything here.
|
||||
_musicPlayer = new MusicPlayerMac(this);
|
||||
else
|
||||
break;
|
||||
case Common::kPlatformIOS:
|
||||
_musicPlayer = new MusicPlayerMPEG4(this);
|
||||
break;
|
||||
default:
|
||||
_musicPlayer = new MusicPlayerXMI(this, _gameDescription->version == kGroovieT7G ? "fat" : "sample");
|
||||
break;
|
||||
}
|
||||
|
||||
// Load volume levels
|
||||
syncSoundSettings();
|
||||
|
@ -747,4 +747,18 @@ Common::SeekableReadStream *MusicPlayerMac::decompressMidi(Common::SeekableReadS
|
||||
return new Common::MemoryReadStream(output, size, DisposeAfterUse::YES);
|
||||
}
|
||||
|
||||
MusicPlayerMPEG4::MusicPlayerMPEG4(GroovieEngine *vm) : MusicPlayer(vm) {
|
||||
}
|
||||
|
||||
void MusicPlayerMPEG4::updateVolume() {
|
||||
// TODO: Check if anything has to be done here
|
||||
}
|
||||
|
||||
bool MusicPlayerMPEG4::load(uint32 fileref, bool loop) {
|
||||
// TODO
|
||||
Common::String filename = Common::String::format("gu%d.m4a", fileref & 0x3FF);
|
||||
warning("TODO: Play MPEG-4 sound '%s'", filename.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
} // End of Groovie namespace
|
||||
|
@ -160,6 +160,15 @@ private:
|
||||
Common::SeekableReadStream *decompressMidi(Common::SeekableReadStream *stream);
|
||||
};
|
||||
|
||||
class MusicPlayerMPEG4 : public MusicPlayer {
|
||||
public:
|
||||
MusicPlayerMPEG4(GroovieEngine *vm);
|
||||
|
||||
protected:
|
||||
void updateVolume();
|
||||
bool load(uint32 fileref, bool loop);
|
||||
};
|
||||
|
||||
} // End of Groovie namespace
|
||||
|
||||
#endif // GROOVIE_MUSIC_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user