midimap: Support midiOutGetVolume, returning FFFFFFFF.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Wed Feb 3 04:33:48 CST 2010


Hi,

This is a compliance patch.  Although the old code is
self-consistent by not announcing CAPS_VOLUME and returning
MMSYSERR_NOTSUPPORTED, tests show that the MIDI mapper
behaves differently (at least when it manages to get a
backend device that also supports CAPS_VOLUME, I don't
have other test data): VOLUME is supported, LR_VOLUME
if the backend does and GETVOLUME initially
returns FFFFFFFF, not the backend's volume.

My tests prove that on native, the following sequence is
unable to restore the original SW-Synth volume settings:
midiopen(MIDIMAPPER)
oldvolume = GetVolume # always sees FFFFFFFF
SetVolume(myvolume)
...run...
SetVolume(oldvolume) # will always set FFFFFFFF
Yet I believe ff7demo does exactly this.

This patch makes Wine behave more like native.

Regards,
	Jörg Höhle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-midimap-Support-midiOutGetVolume-returning-FFFFFFF.patch
Type: application/octet-stream
Size: 2363 bytes
Desc: 0003-midimap-Support-midiOutGetVolume-returning-FFFFFFF.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100203/1388bcfa/attachment.obj>


More information about the wine-patches mailing list