Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.3 KB

mixerOpen.md

File metadata and controls

63 lines (44 loc) · 1.3 KB

Home

Function name : mixerOpen

Group: Windows Multimedia - Library: winmm


The mixerOpen function opens a specified mixer device and ensures that the device will not be removed until the application closes the handle.


Code examples:

Quering Audio Mixer Device

Declaration:

MMRESULT mixerOpen(
  LPHMIXER  phmx,
  UINT      uMxId,
  DWORD_PTR dwCallback,
  DWORD_PTR dwInstance,
  DWORD     fdwOpen
);  

FoxPro declaration:

DECLARE INTEGER mixerOpen IN winmm;
	INTEGER @ phmx,;
	INTEGER   uMxId,;
	INTEGER   dwCallback,;
	INTEGER   dwInstance,;
	INTEGER   fdwOpen
  

Parameters:

phmx Pointer to a variable that will receive a handle identifying the opened mixer device.

uMxId Identifier of the mixer device to open.

dwCallback Handle to a window called when the state of an audio line and/or control associated with the device being opened is changed.

dwInstance User instance data passed to the callback function.

fdwOpen Flags for opening the device.


Return value:

Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.