summaryrefslogtreecommitdiff
path: root/src/music/dmusic.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-09 22:25:25 +0000
committerrubidium <rubidium@openttd.org>2010-07-09 22:25:25 +0000
commitd4da257ff9b11abcbaaea85743665d4188562856 (patch)
tree68532f786430da90807a14484090d33e8e7386b6 /src/music/dmusic.cpp
parent58f1470129cc9adc4f41df6ef4068baa7e2cf04e (diff)
downloadopenttd-d4da257ff9b11abcbaaea85743665d4188562856.tar.xz
(svn r20105) -Revert (r20102) [FS#3938]: resetting DirectMusic completely, although working, causes a temporary freeze of OpenTTD. As MCI behaves better than DirectMusic that has become the default music driver; small delay between songs beats wrongly pitched/bad sounding songs
Diffstat (limited to 'src/music/dmusic.cpp')
-rw-r--r--src/music/dmusic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/music/dmusic.cpp b/src/music/dmusic.cpp
index 21eb47b44..cb255e7c0 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) {
- this->Stop();
- if (this->Start(NULL) != NULL) return;
+ segment->Release();
+ segment = NULL;
}
/* make a new segment */