mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Cleanup.
svn-id: r18563
This commit is contained in:
@@ -349,12 +349,6 @@ bool Music::isPlaying() {
|
||||
return _mixer->isSoundHandleActive(_musicHandle) || _player->isPlaying();
|
||||
}
|
||||
|
||||
// The Wyrmkeep release of Inherit The Earth features external MIDI files, so
|
||||
// we need a mapping from resource number to filename.
|
||||
//
|
||||
// reset.mid seems to be unused.
|
||||
|
||||
|
||||
void Music::play(uint32 resourceId, MusicFlags flags) {
|
||||
AudioStream *audioStream = NULL;
|
||||
MidiParser *parser;
|
||||
@@ -377,7 +371,6 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
|
||||
|
||||
_mixer->stopHandle(_musicHandle);
|
||||
|
||||
|
||||
if (_vm->getGameType() == GType_ITE) {
|
||||
|
||||
if (resourceId >= 9 && resourceId <= 34) {
|
||||
@@ -389,7 +382,6 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (_musicContext != NULL) {
|
||||
//TODO: check resource size
|
||||
audioStream = new RAWInputStream(_vm, _musicContext, resourceId, flags == MUSIC_LOOP);
|
||||
@@ -397,7 +389,6 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (audioStream) {
|
||||
debug(2, "Playing digitized music");
|
||||
_mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_musicHandle, audioStream);
|
||||
|
||||
Reference in New Issue
Block a user