ReactOS  0.4.15-dev-506-ga3ec01c
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 }
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
Definition: mmebuddy.h:71
#define MMSYSERR_NOERROR
Definition: mmsystem.h:96
BOOLEAN IsValidSoundDevice(IN PSOUND_DEVICE SoundDevice)
Definition: devicelist.c:87
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:736

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 )
32  return MMSYSERR_INVALPARAM;
33 
34  /* Fill in the client-supplied functions */
35  CopyMemory(&SoundDevice->FunctionTable,
37  sizeof(MMFUNCTION_TABLE));
38 
39  return MMSYSERR_NOERROR;
40 }
#define ZeroMemory
Definition: winbase.h:1648
#define VALIDATE_MMSYS_PARAMETER(parameter_condition)
Definition: mmebuddy.h:71
#define MMSYSERR_NOERROR
Definition: mmsystem.h:96
#define CopyMemory
Definition: winbase.h:1646
BOOLEAN IsValidSoundDevice(IN PSOUND_DEVICE SoundDevice)
Definition: devicelist.c:87
#define MMSYSERR_INVALPARAM
Definition: mmsystem.h:107
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:736

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