agauld
asked on
Getting handle of midi device
I am using MediaPlayer to control midi playback.
I want to control the volume and to do so must(?) use the Win32 call:
midiOutSetVolume
which takes a Handle(HMIDIOUT) as first parameter but MediaPlayer only provides the DeviceID
(which, BTW, was all that was needed under Win16!)
How can I obtain this Handle?
Alan G.
I want to control the volume and to do so must(?) use the Win32 call:
midiOutSetVolume
which takes a Handle(HMIDIOUT) as first parameter but MediaPlayer only provides the DeviceID
(which, BTW, was all that was needed under Win16!)
How can I obtain this Handle?
Alan G.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The answer is good but didn't work for me... I can read the volume but not set it.
Also tried waveOutSetVolume but same result!
Also tried waveOutSetVolume but same result!
ASKER