ReactOS 0.4.15-dev-7924-g5949c20
functiontable.c File Reference
#include "precomp.h"
Include dependency graph for functiontable.c:

Go to the source code of this file.

Functions

MMRESULT SetSoundDeviceFunctionTable (IN PSOUND_DEVICE SoundDevice, IN PMMFUNCTION_TABLE FunctionTable)
 
MMRESULT GetSoundDeviceFunctionTable (IN PSOUND_DEVICE SoundDevice, OUT PMMFUNCTION_TABLE *FunctionTable)
 

Function Documentation

◆ GetSoundDeviceFunctionTable()

MMRESULT GetSoundDeviceFunctionTable ( IN PSOUND_DEVICE  SoundDevice,
OUT PMMFUNCTION_TABLE FunctionTable 
)

Definition at line 47 of file functiontable.c.

50{
53
54 *FunctionTable = &SoundDevice->FunctionTable;
55
56 return MMSYSERR_NOERROR;
57}
BOOLEAN IsValidSoundDevice(IN PSOUND_DEVICE SoundDevice)
Definition: devicelist.c:87
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
Definition: mmebuddy.h:71
#define MMSYSERR_NOERROR
Definition: mmsystem.h:96
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:722

Referenced by CreateSoundDeviceInstance(), DestroySoundDeviceInstance(), DoWaveStreaming(), GetSoundDeviceCapabilities(), MmeGetDeviceInterfaceString(), MmeGetLineInfo(), MmeGetPosition(), MmeSetState(), PrepareWaveHeader(), QueryWaveDeviceFormatSupport(), SetWaveDeviceFormat(), StopStreamingInSoundThread(), UnprepareWaveHeader(), and WriteWaveHeader().

◆ SetSoundDeviceFunctionTable()

MMRESULT SetSoundDeviceFunctionTable ( IN PSOUND_DEVICE  SoundDevice,
IN PMMFUNCTION_TABLE  FunctionTable 
)

Definition at line 21 of file functiontable.c.

24{
27
28 /* Zero out the existing function table (if present) */
29 ZeroMemory(&SoundDevice->FunctionTable, sizeof(MMFUNCTION_TABLE));
30
31 if ( ! FunctionTable )
33
34 /* Fill in the client-supplied functions */
35 CopyMemory(&SoundDevice->FunctionTable,
37 sizeof(MMFUNCTION_TABLE));
38
39 return MMSYSERR_NOERROR;
40}
#define MMSYSERR_INVALPARAM
Definition: mmsystem.h:107
#define ZeroMemory
Definition: winbase.h:1712
#define CopyMemory
Definition: winbase.h:1710

Referenced by FoundDevice(), ListSoundDevice(), and PopulateWdmDeviceList().