From 24fe1f41a5d778b55026b2ecd0fc7ca74f9e8bf8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 9 Jul 2010 17:47:52 +0000 Subject: (svn r20102) -Fix: OpenMSX music sounds odd after certain songs are played. Likely because the instruments weren't reset properly --- src/music/dmusic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/music/dmusic.cpp b/src/music/dmusic.cpp index cb255e7c0..21eb47b44 100644 --- a/src/music/dmusic.cpp +++ b/src/music/dmusic.cpp @@ -165,8 +165,8 @@ void MusicDriver_DMusic::PlaySong(const char *filename) /* release the existing segment if we have any */ if (segment != NULL) { - segment->Release(); - segment = NULL; + this->Stop(); + if (this->Start(NULL) != NULL) return; } /* make a new segment */ -- cgit v1.2.3-54-g00ecf