Partial implementation of WDMAUD.DRV - device capability querying fails
[reactos.git] / reactos / lib / wdmaud / control.c
1 /*
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS Multimedia
5 * FILE: lib/wdmaud/wavehdr.c
6 * PURPOSE: WDM Audio Support - Device Control (Play/Stop etc.)
7 * PROGRAMMER: Andrew Greenwood
8 * UPDATE HISTORY:
9 * Nov 23, 2005: Created
10 */
11
12 #include <windows.h>
13 #include "wdmaud.h"
14
15 /*
16 TODO:
17 Make these work for the other device types!
18 */
19
20 MMRESULT StartDevice(PWDMAUD_DEVICE_INFO device)
21 {
22 MMRESULT result;
23 DWORD ioctl_code;
24
25 result = ValidateDeviceInfoAndState(device);
26
27 if ( result != MMSYSERR_NOERROR )
28 return result;
29
30 ioctl_code = device == WDMAUD_WAVE_IN ? IOCTL_WDMAUD_WAVE_IN_START :
31 device == WDMAUD_WAVE_OUT ? IOCTL_WDMAUD_WAVE_OUT_START :
32 0x0000;
33
34 ASSERT( ioctl_code );
35 }
36
37 MMRESULT StopDevice(PWDMAUD_DEVICE_INFO device)
38 {
39 }
40
41 MMRESULT PauseDevice(PWDMAUD_DEVICE_INFO device)
42 {
43 }
44
45 MMRESULT StopDeviceLooping(PWDMAUD_DEVICE_INFO device)
46 {
47 }