[odamex-bug-reporter] [Bug 863] Music volume quieter on portmidi than SDL_mixer on Windows XP (double volume adjustment?)

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Fri, 22 Feb 2013 16:04:25 +0000

http://odamex.net/bugs/show_bug.cgi?id=863

--- Comment #4 from Dr. Sean <grandpachuck187@xxxxxxxxx> 2013-02-22 16:04:25 
UTC ---
I agree that the difference in volume curve between PortMidi and SDL_Mixer
probably is due to Windows applying a logarithmic volume curve when SDL_Mixer
calls midiOutSetVolume(). Our PortMidi implementation uses a linear volume
curve currently.

From the Microsoft docs for midiOutSetVolume:
"Volume settings are interpreted logarithmically. This means that the perceived
increase in volume is the same when increasing the volume level from 0x5000 to
0x6000 as it is from 0x4000 to 0x5000."

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: