Link to home
Start Free TrialLog in
Avatar of agauld
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.
Avatar of agauld
agauld

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of fsanchez
fsanchez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of agauld

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!