Changeset - r24047:8f20a20fcf80
[Not reviewed]
master
0 1 0
Milek7 - 4 years ago 2020-01-12 14:18:10
Milek7@users.noreply.github.com
Fix: correct checking of fluid_settings_setnum return code
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/music/fluidsynth.cpp
Show inline comments
 
@@ -153,7 +153,7 @@ void MusicDriver_FluidSynth::SetVolume(b
 
	 * volume". Set gain using OpenTTD's volume, as a number between 0
 
	 * and 0.2. */
 
	double gain = (1.0 * vol) / (128.0 * 5.0);
 
	if (fluid_settings_setnum(_midi.settings, "synth.gain", gain) != 1) {
 
	if (fluid_settings_setnum(_midi.settings, "synth.gain", gain) != FLUID_OK) {
 
		DEBUG(driver, 0, "Could not set volume");
 
	}
 
}
0 comments (0 inline, 0 general)