Changeset - r15443:226f092fd924
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-07-09 17:47:52
rubidium@openttd.org
(svn r20102) -Fix: OpenMSX music sounds odd after certain songs are played. Likely because the instruments weren't reset properly
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/music/dmusic.cpp
Show inline comments
 
@@ -162,14 +162,14 @@ void MusicDriver_DMusic::PlaySong(const 
 
		filename, -1,
 
		obj_desc.wszFileName, lengthof(obj_desc.wszFileName)
 
	);
 

	
 
	/* 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 */
 
	if (FAILED(loader->GetObject(
 
				&obj_desc, IID_IDirectMusicSegment, (LPVOID*)&segment
 
			))) {
0 comments (0 inline, 0 general)