Changeset - r23846:91590a50f9ce
[Not reviewed]
master
0 1 0
Charles Pigott - 5 years ago 2019-08-03 08:03:01
charlespigott@googlemail.com
Fix: Compilation error on MinGW due to usage of C++17 template deduction
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/music/win32_m.cpp
Show inline comments
 
@@ -328,7 +328,7 @@ void MusicDriver_Win32::PlaySong(const M
 
	if (!new_song.LoadSong(song)) return;
 
	DEBUG(driver, 2, "Win32-MIDI: PlaySong: Loaded song");
 

	
 
	std::lock_guard mutex_lock(_midi.lock);
 
	std::lock_guard<std::mutex> mutex_lock(_midi.lock);
 

	
 
	_midi.next_file.MoveFrom(new_song);
 
	_midi.next_segment.start = song.override_start;
 
@@ -348,7 +348,7 @@ void MusicDriver_Win32::PlaySong(const M
 
void MusicDriver_Win32::StopSong()
 
{
 
	DEBUG(driver, 2, "Win32-MIDI: StopSong: entry");
 
	std::lock_guard mutex_lock(_midi.lock);
 
	std::lock_guard<std::mutex> mutex_lock(_midi.lock);
 
	DEBUG(driver, 2, "Win32-MIDI: StopSong: setting flag");
 
	_midi.do_stop = true;
 
}
 
@@ -360,7 +360,7 @@ bool MusicDriver_Win32::IsSongPlaying()
 

	
 
void MusicDriver_Win32::SetVolume(byte vol)
 
{
 
	std::lock_guard mutex_lock(_midi.lock);
 
	std::lock_guard<std::mutex> mutex_lock(_midi.lock);
 
	_midi.new_volume = vol;
 
}
 

	
 
@@ -422,7 +422,7 @@ const char *MusicDriver_Win32::Start(con
 

	
 
void MusicDriver_Win32::Stop()
 
{
 
	std::lock_guard mutex_lock(_midi.lock);
 
	std::lock_guard<std::mutex> mutex_lock(_midi.lock);
 

	
 
	if (_midi.timer_id) {
 
		timeKillEvent(_midi.timer_id);
0 comments (0 inline, 0 general)