diff options
author | Kamil Zbrog | 2014-03-31 22:56:01 +0200 |
---|---|---|
committer | lukaslw | 2014-06-22 19:24:14 +0200 |
commit | 94f51358508cacc1b8fa1aa4745dbba4917128ca (patch) | |
tree | d8a927a1d4f09dd696ac883f914972d8dbe8c21a /engines/prince/sound.cpp | |
parent | 8e9f08cf433b556751d74aac94c09c224d58383f (diff) | |
download | scummvm-rg350-94f51358508cacc1b8fa1aa4745dbba4917128ca.tar.gz scummvm-rg350-94f51358508cacc1b8fa1aa4745dbba4917128ca.tar.bz2 scummvm-rg350-94f51358508cacc1b8fa1aa4745dbba4917128ca.zip |
PRINCE: Fixed background music playback
Diffstat (limited to 'engines/prince/sound.cpp')
-rw-r--r-- | engines/prince/sound.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/prince/sound.cpp b/engines/prince/sound.cpp index fcdca8a0d1..425a710aa1 100644 --- a/engines/prince/sound.cpp +++ b/engines/prince/sound.cpp @@ -158,7 +158,10 @@ void MusicPlayer::killMidi() { void MusicPlayer::loadMidi(const char * name) { Common::SeekableReadStream * stream = SearchMan.createReadStreamForMember(name); if (!stream) + { + debug("Can't load midi stream %s", name); return; + } // Stop any currently playing MIDI file killMidi(); @@ -168,7 +171,7 @@ void MusicPlayer::loadMidi(const char * name) { _data = (byte *)malloc(_dataSize); stream->read(_data, _dataSize); - delete stream; + delete stream; // Start playing the music sndMidiStart(); @@ -216,3 +219,5 @@ void MusicPlayer::sendToChannel(byte channel, uint32 b) { } } // End of namespace CGE + +/* vim: set tabstop=4 expandtab!: */ |