ReactOS 0.4.16-dev-300-g2aadf2e
interface.h File Reference
#include <sndtypes.h>
Include dependency graph for interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WDMAUD_DEVICE_INFO
 

Macros

#define IOCTL_OPEN_WDMAUD
 
#define IOCTL_CLOSE_WDMAUD
 
#define IOCTL_GETNUMDEVS_TYPE
 
#define IOCTL_SETDEVICE_STATE
 
#define IOCTL_GETDEVID
 
#define IOCTL_GETVOLUME
 
#define IOCTL_SETVOLUME
 
#define IOCTL_GETCAPABILITIES
 
#define IOCTL_WRITEDATA
 
#define IOCTL_GETPOS
 
#define IOCTL_GETFRAMESIZE
 
#define IOCTL_GETLINEINFO
 
#define IOCTL_GETLINECONTROLS
 
#define IOCTL_SETCONTROLDETAILS
 
#define IOCTL_GETCONTROLDETAILS
 
#define IOCTL_QUERYDEVICEINTERFACESTRING
 
#define IOCTL_GET_MIXER_EVENT
 
#define IOCTL_RESET_STREAM
 

Typedefs

typedef struct WDMAUD_DEVICE_INFOPWDMAUD_DEVICE_INFO
 

Macro Definition Documentation

◆ IOCTL_CLOSE_WDMAUD

#define IOCTL_CLOSE_WDMAUD
Value:
1, \
#define FILE_CREATE_TREE_CONNECTION
Definition: from_kernel.h:33
#define CTL_CODE(DeviceType, Function, Method, Access)
Definition: nt_native.h:586
#define FILE_ANY_ACCESS
Definition: nt_native.h:609
#define METHOD_BUFFERED
Definition: nt_native.h:594
#define FILE_DEVICE_SOUND
Definition: winioctl.h:74

IOCTL_CLOSE_WDMAUD

Description: This IOCTL informs that an application has finished with wdmsys and closes the connection

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: DeviceType, DeviceIndex and hDevice must be set ReturnCode: STATUS_SUCCESS indicates success Prerequisites: openend device

Definition at line 99 of file interface.h.

◆ IOCTL_GET_MIXER_EVENT

#define IOCTL_GET_MIXER_EVENT
Value:

IOCTL_GET_MIXER_EVENT

Description: This IOCTL queries for wdmaud driver if there any new kernel streaming events available

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set Result: The result is returned in the struct MixerInfo ReturnCode: STATUS_SUCCESS indicates success

Definition at line 359 of file interface.h.

◆ IOCTL_GETCAPABILITIES

#define IOCTL_GETCAPABILITIES
Value:

IOCTL_GETCAPABILITIES

Description: This IOCTL retrieves the capabilities of an specific device

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType and DeviceIndex must be set ReturnCode: STATUS_SUCCESS indicates success Prerequisites: none

Definition at line 204 of file interface.h.

◆ IOCTL_GETCONTROLDETAILS

#define IOCTL_GETCONTROLDETAILS
Value:

IOCTL_GETCONTROLDETAILS

Description: This IOCTL gets details of a control of a mixerline

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set Result: The result is returned in MixDetails ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 325 of file interface.h.

◆ IOCTL_GETDEVID

#define IOCTL_GETDEVID
Value:

IOCTL_GETDEVID

Description: This IOCTL returns the device index by its provided handle

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType and hDevice must be set Result: The result is returned in DeviceIndex ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 152 of file interface.h.

◆ IOCTL_GETFRAMESIZE

#define IOCTL_GETFRAMESIZE
Value:

IOCTL_GETFRAMESIZE

Description: This IOCTL retrieves the frame size requirements for an audio pin

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType and hDevice must be set Result: The result is returned in FrameSize ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 255 of file interface.h.

◆ IOCTL_GETLINECONTROLS

#define IOCTL_GETLINECONTROLS
Value:

IOCTL_GETLINECONTROLS

Description: This IOCTL retrieves controls of a mixerline

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set Result: The result is returned in MixControls ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 290 of file interface.h.

◆ IOCTL_GETLINEINFO

#define IOCTL_GETLINEINFO
Value:

IOCTL_GETLINEINFO

Description: This IOCTL retrieves information on a mixerline

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set Result: The result is returned in MixLine ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 272 of file interface.h.

◆ IOCTL_GETNUMDEVS_TYPE

#define IOCTL_GETNUMDEVS_TYPE
Value:

IOCTL_GETNUMDEVS_TYPE

Description: This IOCTL queries the number of devices currently present of a specific type. The caller passes a WDMAUD_DEVICE_INFO structure.

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType contains the requested device type. Result: The result is returned in DeviceCount ReturnCode: STATUS_SUCCESS indicates success Prerequisites: none

Definition at line 117 of file interface.h.

◆ IOCTL_GETPOS

#define IOCTL_GETPOS
Value:

IOCTL_GETPOS

Description: This IOCTL retrieves the current playback / write position

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType and hDevice must be set Result: The result is returned in Position ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 238 of file interface.h.

◆ IOCTL_GETVOLUME

#define IOCTL_GETVOLUME
Value:

IOCTL_GETVOLUME

Description: This IOCTL returns the volume a device

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType and hDevice must be set Result: The result is returned in Volume ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 170 of file interface.h.

◆ IOCTL_OPEN_WDMAUD

#define IOCTL_OPEN_WDMAUD
Value:

IOCTL_OPEN_WDMAUD

Description: This IOCTL informs wdmaud that an application whats to use wdmsys for a waveOut / waveIn / aux operation

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: DeviceType identifies the device type, DeviceIndex the index, WaveFormatEx the device details Result: is returned in hDevice Return Code: STATUS_SUCCESS indicates success, otherwise appropriate error code Prerequisites: none

Definition at line 82 of file interface.h.

◆ IOCTL_QUERYDEVICEINTERFACESTRING

#define IOCTL_QUERYDEVICEINTERFACESTRING
Value:

IOCTL_QUERYDEVICEINTERFACESTRING

Description: This IOCTL queries the mixer / playback / recording device for its device interface string

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType, DeviceIndex must be set Result: The size is returned in Interface.DeviceInterfaceStringSize and if a buffer is supplied in Interface.DeviceInterfaceString the device interface string is stored ReturnCode: STATUS_SUCCESS indicates success

Definition at line 343 of file interface.h.

◆ IOCTL_RESET_STREAM

#define IOCTL_RESET_STREAM
Value:

IOCTL_RESET_STREAM

Description: This IOCTL instructs wdmaud to reset a stream

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set and DeviceType ReturnCode: STATUS_SUCCESS indicates success

Definition at line 374 of file interface.h.

◆ IOCTL_SETCONTROLDETAILS

#define IOCTL_SETCONTROLDETAILS
Value:

IOCTL_SETCONTROLDETAILS

Description: This IOCTL sets details of a control of a mixerline

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The hDevice member must be set ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 307 of file interface.h.

◆ IOCTL_SETDEVICE_STATE

#define IOCTL_SETDEVICE_STATE
Value:

IOCTL_SETDEVICE_STATE

Description: This IOCTL sets an opened waveOut / waveIn / midiIn / midiOut / aux device to specific state

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType, DeviceIndex, hDevice and State member must be set. State determines the new state ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 134 of file interface.h.

◆ IOCTL_SETVOLUME

#define IOCTL_SETVOLUME
Value:

IOCTL_SETVOLUME

Description: This IOCTL sets the volume a device

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType, hDevice and Volume must be set ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 187 of file interface.h.

◆ IOCTL_WRITEDATA

#define IOCTL_WRITEDATA
Value:

IOCTL_WRITEDATA

Description: This IOCTL writes data to specified device

Arguments: InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure, InputBufferSize is size of WDMAUD_DEVICE_INFO structure Note: The DeviceType, DeviceIndex, hDevice, BufferSize and Buffer must be set ReturnCode: STATUS_SUCCESS indicates success Prerequisites: opened device

Definition at line 221 of file interface.h.

Typedef Documentation

◆ PWDMAUD_DEVICE_INFO