(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

This commit is contained in:
rubidium
2010-07-09 22:25:25 +00:00
parent 58f1470129
commit d4da257ff9
4 changed files with 20 additions and 4 deletions

View File

@@ -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 */