Xeno-rat
Loading...
Searching...
No Matches
NAudio.Mixer.MixerInterop Class Reference
Collaboration diagram for NAudio.Mixer.MixerInterop:

Classes

struct  Bounds
 BOUNDS structure. More...
 
struct  Metrics
 METRICS structure. More...
 
struct  MIXERCAPS
 
struct  MIXERCONTROL
 MIXERCONTROL struct http://msdn.microsoft.com/en-us/library/dd757293%28VS.85%29.aspx. More...
 
struct  MIXERCONTROLDETAILS
 
struct  MIXERCONTROLDETAILS_BOOLEAN
 
struct  MIXERCONTROLDETAILS_LISTTEXT
 
struct  MIXERCONTROLDETAILS_SIGNED
 
struct  MIXERCONTROLDETAILS_UNSIGNED
 
struct  MIXERLINE
 
struct  MIXERLINECONTROLS
 

Public Types

enum  MIXERLINE_LINEF { MIXERLINE_LINEF_ACTIVE = 1 , MIXERLINE_LINEF_DISCONNECTED = 0x8000 , MIXERLINE_LINEF_SOURCE = (unchecked((int)0x80000000)) }
 Mixer Line Flags. More...
 

Public Member Functions

static Int32 mixerGetNumDevs ()
 Retrieves the number of multimedia mixer devices present in the system.
 
static MmResult mixerOpen (out IntPtr hMixer, int uMxId, IntPtr dwCallback, IntPtr dwInstance, MixerFlags dwOpenFlags)
 Opens a specified mixer device and returns a handle to the device.
 
static MmResult mixerClose (IntPtr hMixer)
 Closes the specified mixer device.
 
static MmResult mixerGetControlDetails (IntPtr hMixer, ref MIXERCONTROLDETAILS mixerControlDetails, MixerFlags dwDetailsFlags)
 Retrieves details about a specified audio mixer control.
 
static MmResult mixerGetDevCaps (IntPtr nMixerID, ref MIXERCAPS mixerCaps, Int32 mixerCapsSize)
 Retrieves the capabilities of a specified mixer device.
 
static MmResult mixerGetID (IntPtr hMixer, out Int32 mixerID, MixerFlags dwMixerIDFlags)
 Retrieves the identifier of a mixer device associated with the specified mixer handle.
 
static MmResult mixerGetLineControls (IntPtr hMixer, ref MIXERLINECONTROLS mixerLineControls, MixerFlags dwControlFlags)
 Retrieves the controls for a specified audio mixer line.
 
static MmResult mixerGetLineInfo (IntPtr hMixer, ref MIXERLINE mixerLine, MixerFlags dwInfoFlags)
 Retrieves information about a specified audio mixer line.
 
static MmResult mixerMessage (IntPtr hMixer, UInt32 nMessage, IntPtr dwParam1, IntPtr dwParam2)
 Sends a message to a specified mixer device.
 
static MmResult mixerSetControlDetails (IntPtr hMixer, ref MIXERCONTROLDETAILS mixerControlDetails, MixerFlags dwDetailsFlags)
 Sets the details of a specified audio mixer control.
 

Static Public Attributes

const UInt32 MIXERCONTROL_CONTROLF_UNIFORM = 0x00000001
 
const UInt32 MIXERCONTROL_CONTROLF_MULTIPLE = 0x00000002
 
const UInt32 MIXERCONTROL_CONTROLF_DISABLED = 0x80000000
 
const Int32 MAXPNAMELEN = 32
 
const Int32 MIXER_SHORT_NAME_CHARS = 16
 
const Int32 MIXER_LONG_NAME_CHARS = 64
 

Member Enumeration Documentation

◆ MIXERLINE_LINEF

Mixer Line Flags.

Enumerator
MIXERLINE_LINEF_ACTIVE 

Audio line is active. An active line indicates that a signal is probably passing through the line.

MIXERLINE_LINEF_DISCONNECTED 

Audio line is disconnected. A disconnected line's associated controls can still be modified, but the changes have no effect until the line is connected.

MIXERLINE_LINEF_SOURCE 

Audio line is an audio source line associated with a single audio destination line. If this flag is not set, this line is an audio destination line associated with zero or more audio source lines.

Member Function Documentation

◆ mixerClose()

static MmResult NAudio.Mixer.MixerInterop.mixerClose ( IntPtr hMixer)

Closes the specified mixer device.

Parameters
hMixerHandle to the mixer device to be closed.
Returns
An MmResult value indicating the result of the operation.

This method closes the specified mixer device identified by the handle hMixer .

◆ mixerGetControlDetails()

static MmResult NAudio.Mixer.MixerInterop.mixerGetControlDetails ( IntPtr hMixer,
ref MIXERCONTROLDETAILS mixerControlDetails,
MixerFlags dwDetailsFlags )

Retrieves details about a specified audio mixer control.

Parameters
hMixerHandle to the audio mixer device.
mixerControlDetailsReference to a MIXERCONTROLDETAILS structure that will receive the control details.
dwDetailsFlagsFlags specifying the details to retrieve.
Returns
An MmResult value indicating the success or failure of the operation.

This method retrieves details about a specified audio mixer control identified by the mixerControlDetails parameter. The details retrieved are determined by the flags specified in the dwDetailsFlags parameter.

Here is the caller graph for this function:

◆ mixerGetDevCaps()

static MmResult NAudio.Mixer.MixerInterop.mixerGetDevCaps ( IntPtr nMixerID,
ref MIXERCAPS mixerCaps,
Int32 mixerCapsSize )

Retrieves the capabilities of a specified mixer device.

Parameters
nMixerIDThe handle to the mixer device to get the capabilities for.
mixerCapsA reference to a MIXERCAPS structure that will receive the capabilities of the mixer device.
mixerCapsSizeThe size of the mixerCaps structure in bytes.
Returns
An MmResult value indicating the success or failure of the operation.

This method retrieves the capabilities of the specified mixer device identified by nMixerID . The capabilities are stored in the mixerCaps structure, and the size of the structure must be specified in mixerCapsSize . If successful, the method returns MmResult.MMSYSERR_NOERROR; otherwise, it returns an error code indicating the cause of failure.

Here is the caller graph for this function:

◆ mixerGetID()

static MmResult NAudio.Mixer.MixerInterop.mixerGetID ( IntPtr hMixer,
out Int32 mixerID,
MixerFlags dwMixerIDFlags )

Retrieves the identifier of a mixer device associated with the specified mixer handle.

Parameters
hMixerThe handle to the mixer device.
mixerIDWhen this method returns, contains the identifier of the mixer device.
dwMixerIDFlagsFlags specifying how the mixer identifier should be retrieved.
Returns
An MmResult value indicating the success or failure of the operation.
Here is the caller graph for this function:

◆ mixerGetLineControls()

static MmResult NAudio.Mixer.MixerInterop.mixerGetLineControls ( IntPtr hMixer,
ref MIXERLINECONTROLS mixerLineControls,
MixerFlags dwControlFlags )

Retrieves the controls for a specified audio mixer line.

Parameters
hMixerHandle to the mixer device.
mixerLineControlsReference to a MIXERLINECONTROLS structure that specifies the controls to retrieve.
dwControlFlagsFlags that specify the control types to retrieve.
Returns
An MmResult value indicating the result of the operation.

This method retrieves the controls for the specified audio mixer line using the specified handle to the mixer device. The controls to retrieve are specified by the mixerLineControls parameter, and the types of controls to retrieve are specified by the dwControlFlags parameter.

Here is the caller graph for this function:

◆ mixerGetLineInfo()

static MmResult NAudio.Mixer.MixerInterop.mixerGetLineInfo ( IntPtr hMixer,
ref MIXERLINE mixerLine,
MixerFlags dwInfoFlags )

Retrieves information about a specified audio mixer line.

Parameters
hMixerHandle to the mixer device.
mixerLineReference to a MIXERLINE structure that will receive the line information.
dwInfoFlagsFlags specifying the information to retrieve.
Returns
Returns an MmResult value indicating the success or failure of the operation.

This method retrieves information about a specified audio mixer line identified by the mixerLine parameter. The information retrieved is determined by the dwInfoFlags parameter, which specifies the type of information to retrieve. The retrieved information is stored in the mixerLine structure.

Here is the caller graph for this function:

◆ mixerGetNumDevs()

static Int32 NAudio.Mixer.MixerInterop.mixerGetNumDevs ( )

Retrieves the number of multimedia mixer devices present in the system.

Returns
The number of multimedia mixer devices present in the system.

◆ mixerMessage()

static MmResult NAudio.Mixer.MixerInterop.mixerMessage ( IntPtr hMixer,
UInt32 nMessage,
IntPtr dwParam1,
IntPtr dwParam2 )

Sends a message to a specified mixer device.

Parameters
hMixerHandle to the mixer device.
nMessageThe message to send to the mixer device.
dwParam1Message-specific parameter.
dwParam2Message-specific parameter.
Returns
The result of the message sent to the mixer device.

This method sends a message to the specified mixer device using the parameters provided.

◆ mixerOpen()

static MmResult NAudio.Mixer.MixerInterop.mixerOpen ( out IntPtr hMixer,
int uMxId,
IntPtr dwCallback,
IntPtr dwInstance,
MixerFlags dwOpenFlags )

Opens a specified mixer device and returns a handle to the device.

Parameters
hMixerWhen this method returns, contains a handle to the opened mixer device.
uMxIdThe identifier of the mixer device to open.
dwCallbackReserved; must be IntPtr.Zero.
dwInstanceReserved; must be IntPtr.Zero.
dwOpenFlagsFlags that specify options for opening the mixer device.
Returns
An MmResult value that specifies the result of the operation.
Exceptions
MmExceptionThrown when an error occurs while opening the mixer device.

◆ mixerSetControlDetails()

static MmResult NAudio.Mixer.MixerInterop.mixerSetControlDetails ( IntPtr hMixer,
ref MIXERCONTROLDETAILS mixerControlDetails,
MixerFlags dwDetailsFlags )

Sets the details of a specified audio mixer control.

Parameters
hMixerHandle to the audio mixer device.
mixerControlDetailsReference to a MIXERCONTROLDETAILS structure that specifies the details to set.
dwDetailsFlagsFlags that define the details to set.
Returns
The result of the operation as an MmResult value.

Member Data Documentation

◆ MAXPNAMELEN

const Int32 NAudio.Mixer.MixerInterop.MAXPNAMELEN = 32
static

◆ MIXER_LONG_NAME_CHARS

const Int32 NAudio.Mixer.MixerInterop.MIXER_LONG_NAME_CHARS = 64
static

◆ MIXER_SHORT_NAME_CHARS

const Int32 NAudio.Mixer.MixerInterop.MIXER_SHORT_NAME_CHARS = 16
static

◆ MIXERCONTROL_CONTROLF_DISABLED

const UInt32 NAudio.Mixer.MixerInterop.MIXERCONTROL_CONTROLF_DISABLED = 0x80000000
static

◆ MIXERCONTROL_CONTROLF_MULTIPLE

const UInt32 NAudio.Mixer.MixerInterop.MIXERCONTROL_CONTROLF_MULTIPLE = 0x00000002
static

◆ MIXERCONTROL_CONTROLF_UNIFORM

const UInt32 NAudio.Mixer.MixerInterop.MIXERCONTROL_CONTROLF_UNIFORM = 0x00000001
static

The documentation for this class was generated from the following file: