ReactOS  0.4.14-dev-376-gaedba84
wave.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WAVE_DD_VOLUME
 
struct  WAVEOVL
 
struct  tag_WAVEALLOC
 
struct  _AUX_DD_VOLUME
 

Macros

#define WAVE_DD_STOP   0x0001
 
#define WAVE_DD_PLAY   0x0002
 
#define WAVE_DD_RECORD   0x0003
 
#define WAVE_DD_RESET   0x0004
 
#define WAVE_DD_IDLE   0x0000
 
#define WAVE_DD_STOPPED   0x0001
 
#define WAVE_DD_PLAYING   0x0002
 
#define WAVE_DD_RECORDING   0x0003
 

Typedefs

typedef struct _WAVE_DD_VOLUME WAVE_DD_VOLUME
 
typedef struct _WAVE_DD_VOLUMEPWAVE_DD_VOLUME
 
typedef struct WAVEOVLPWAVEOVL
 
typedef struct tag_WAVEALLOC WAVEALLOC
 
typedef struct tag_WAVEALLOCPWAVEALLOC
 
typedef struct _AUX_DD_VOLUME AUX_DD_VOLUME
 
typedef struct _AUX_DD_VOLUMEPAUX_DD_VOLUME
 

Enumerations

enum  WAVETHREADFUNCTION {
  WaveThreadInvalid, WaveThreadAddBuffer, WaveThreadSetState, WaveThreadSetData,
  WaveThreadGetData, WaveThreadBreakLoop, WaveThreadClose, WaveThreadTerminate
}
 

Functions

MMRESULT GetDeviceCapabilities (DWORD ID, UINT DeviceType, LPBYTE pCaps, DWORD Size)
 
DWORD AuxGetAudio (DWORD dwID, PBYTE pVolume, DWORD sizeVolume)
 
DWORD AuxSetAudio (DWORD dwID, PBYTE pVolume, DWORD sizeVolume)
 

Macro Definition Documentation

◆ WAVE_DD_IDLE

#define WAVE_DD_IDLE   0x0000

Definition at line 16 of file wave.h.

◆ WAVE_DD_PLAY

#define WAVE_DD_PLAY   0x0002

Definition at line 11 of file wave.h.

◆ WAVE_DD_PLAYING

#define WAVE_DD_PLAYING   0x0002

Definition at line 18 of file wave.h.

◆ WAVE_DD_RECORD

#define WAVE_DD_RECORD   0x0003

Definition at line 12 of file wave.h.

◆ WAVE_DD_RECORDING

#define WAVE_DD_RECORDING   0x0003

Definition at line 19 of file wave.h.

◆ WAVE_DD_RESET

#define WAVE_DD_RESET   0x0004

Definition at line 13 of file wave.h.

◆ WAVE_DD_STOP

#define WAVE_DD_STOP   0x0001

Definition at line 10 of file wave.h.

◆ WAVE_DD_STOPPED

#define WAVE_DD_STOPPED   0x0001

Definition at line 17 of file wave.h.

Typedef Documentation

◆ AUX_DD_VOLUME

◆ PAUX_DD_VOLUME

◆ PWAVE_DD_VOLUME

◆ PWAVEALLOC

◆ PWAVEOVL

typedef struct WAVEOVL * PWAVEOVL

◆ WAVE_DD_VOLUME

◆ WAVEALLOC

Enumeration Type Documentation

◆ WAVETHREADFUNCTION

Enumerator
WaveThreadInvalid 
WaveThreadAddBuffer 
WaveThreadSetState 
WaveThreadSetData 
WaveThreadGetData 
WaveThreadBreakLoop 
WaveThreadClose 
WaveThreadTerminate 

Definition at line 23 of file wave.h.

Function Documentation

◆ AuxGetAudio()

DWORD AuxGetAudio ( DWORD  dwID,
PBYTE  pVolume,
DWORD  sizeVolume 
)

Definition at line 69 of file auxil.c.

70 {
74 
76  if (Result != MMSYSERR_NOERROR)
77  return Result;
78 
79 
82 
83 
85 
86  return Result;
87  }
#define CloseHandle
Definition: compat.h:406
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
Definition: hubbusif.h:121
#define IOCTL_AUX_GET_VOLUME
Definition: mmdef.h:82
UINT MMRESULT
Definition: mmsystem.h:962
MMRESULT OpenDevice(DeviceInfo **private_data, MIDIOPENDESC *open_desc, DWORD flags)
Definition: beepmidi.c:264
smooth NULL
Definition: ftsmooth.c:416
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
DWORD TranslateStatus(void)
Definition: utils.c:30
#define MMSYSERR_NOERROR
Definition: mmsystem.h:96
unsigned long DWORD
Definition: ntddk_ex.h:95
#define GENERIC_READ
Definition: compat.h:124
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: deviceio.c:136
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716

Referenced by auxMessage().

◆ AuxSetAudio()

DWORD AuxSetAudio ( DWORD  dwID,
PBYTE  pVolume,
DWORD  sizeVolume 
)

Definition at line 89 of file auxil.c.

90 {
94 
96  if (Result != MMSYSERR_NOERROR)
97  return Result;
98 
99  Result = DeviceIoControl(DeviceHandle, IOCTL_AUX_SET_VOLUME, (LPVOID)pVolume, sizeVolume, NULL, 0,
101 
102 
104 
105  return Result;
106  }
#define CloseHandle
Definition: compat.h:406
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
Definition: hubbusif.h:121
UINT MMRESULT
Definition: mmsystem.h:962
#define IOCTL_AUX_SET_VOLUME
Definition: mmdef.h:81
MMRESULT OpenDevice(DeviceInfo **private_data, MIDIOPENDESC *open_desc, DWORD flags)
Definition: beepmidi.c:264
smooth NULL
Definition: ftsmooth.c:416
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
DWORD TranslateStatus(void)
Definition: utils.c:30
#define MMSYSERR_NOERROR
Definition: mmsystem.h:96
unsigned long DWORD
Definition: ntddk_ex.h:95
#define GENERIC_READ
Definition: compat.h:124
BOOL WINAPI DeviceIoControl(IN HANDLE hDevice, IN DWORD dwIoControlCode, IN LPVOID lpInBuffer OPTIONAL, IN DWORD nInBufferSize OPTIONAL, OUT LPVOID lpOutBuffer OPTIONAL, IN DWORD nOutBufferSize OPTIONAL, OUT LPDWORD lpBytesReturned OPTIONAL, IN LPOVERLAPPED lpOverlapped OPTIONAL)
Definition: deviceio.c:136
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716

Referenced by auxMessage().

◆ GetDeviceCapabilities()

MMRESULT GetDeviceCapabilities ( DWORD  ID,
UINT  DeviceType,
LPBYTE  pCaps,
DWORD  Size 
)