diff options
author | Filippos Karapetis | 2008-04-24 14:15:35 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-04-24 14:15:35 +0000 |
commit | 00e652f8e42f41963dc128441d5583e4a4940e9a (patch) | |
tree | 790acc9aca7c576a199dd6c40a67a95304e2f91e | |
parent | 068372ac94ee9cde99df7a8fee64d2c8424bb119 (diff) | |
download | scummvm-rg350-00e652f8e42f41963dc128441d5583e4a4940e9a.tar.gz scummvm-rg350-00e652f8e42f41963dc128441d5583e4a4940e9a.tar.bz2 scummvm-rg350-00e652f8e42f41963dc128441d5583e4a4940e9a.zip |
More cleanup
svn-id: r31692
-rw-r--r-- | engines/made/music.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/made/music.cpp b/engines/made/music.cpp index b9a0154093..1b51fb3b80 100644 --- a/engines/made/music.cpp +++ b/engines/made/music.cpp @@ -141,9 +141,6 @@ void MusicPlayer::onTimer(void *refCon) { } void MusicPlayer::play(XmidiResource *midiResource, MusicFlags flags) { - byte *resourceData; - size_t resourceSize; - if (_isPlaying) return; @@ -153,11 +150,7 @@ void MusicPlayer::play(XmidiResource *midiResource, MusicFlags flags) { _isGM = true; - resourceSize = midiResource->getSize(); - resourceData = new byte[resourceSize]; - memcpy(resourceData, midiResource->getData(), resourceSize); - - if (_xmidiParser->loadMusic(resourceData, resourceSize)) { + if (_xmidiParser->loadMusic(midiResource->getData(), midiResource->getSize())) { MidiParser *parser = _xmidiParser; parser->setTrack(0); parser->setMidiDriver(this); |