source: trunk/src/winmm/wavein.cpp@ 46

Last change on this file since 46 was 46, checked in by sandervl, 26 years ago

* empty log message *

File size: 3.2 KB
Line 
1/*
2 * Wave in stubs
3 *
4 * Copyright 1998 Joel Troster
5 *
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10#include <os2win.h>
11#include <mmsystem.h>
12
13#include <stdio.h>
14#include <string.h>
15
16#include <misc.h>
17#include <unicode.h>
18
19#include "winmm.h"
20
21
22// All stubs for now
23MMRESULT WIN32API waveInAddBuffer(HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh)
24{
25 dprintf(("WINMM:waveInAddBuffer - stub\n"));
26 return MMSYSERR_INVALHANDLE;
27}
28
29MMRESULT WIN32API waveInClose(HWAVEIN hwi)
30{
31 dprintf(("WINMM:waveInClose - stub\n"));
32 return MMSYSERR_INVALHANDLE;
33}
34
35MMRESULT WIN32API waveInGetDevCapsA(UINT uDeviceID, LPWAVEINCAPSA pwic, UINT cbwic)
36{
37 dprintf(("WINMM:waveInGetDevCapsA(%d) - stub\n", uDeviceID ));
38 return MMSYSERR_BADDEVICEID;
39}
40
41MMRESULT WIN32API waveInGetDevCapsW(UINT uDeviceID, LPWAVEINCAPSW pwic, UINT cbwic)
42{
43 dprintf(("WINMM:waveInGetDevCapsW(%d) - stub\n", uDeviceID ));
44 return MMSYSERR_BADDEVICEID;
45}
46
47MMRESULT WIN32API waveInGetErrorTextA(MMRESULT wError, LPSTR lpText, UINT cchText)
48{
49 dprintf(("WINMM:waveInGetErrorTextA(%d)\n", wError ));
50 char * theMsg = getWinmmMsg( wError );
51 if ( theMsg )
52 strncpy( lpText, theMsg, cchText );
53 else
54 {
55 char errMsg[100];
56 sprintf( errMsg, "Unknown error number %d", wError );
57 strncpy( lpText, errMsg, cchText );
58 }
59 return MMSYSERR_NOERROR;
60}
61
62MMRESULT WIN32API waveInGetErrorTextW(MMRESULT wError, LPWSTR lpText, UINT cchText)
63{
64 dprintf(("WINMM:waveInGetErrorTextW(%d) - stub\n", wError ));
65 char * theMsg = getWinmmMsg( wError );
66 if ( theMsg )
67 AsciiToUnicode( theMsg, lpText );
68 else
69 {
70 char errMsg[100];
71 sprintf( errMsg, "Unknown error number %d", wError );
72 AsciiToUnicode( errMsg, lpText );
73 }
74 return MMSYSERR_NOERROR;
75}
76
77MMRESULT WIN32API waveInGetID(HWAVEIN hwi, LPUINT puDeviceID)
78{
79 dprintf(("WINMM:waveInGetID - stub\n"));
80 return MMSYSERR_INVALHANDLE;
81}
82
83UINT WIN32API waveInGetNumDevs(void)
84{
85 dprintf(("WINMM:waveInGetNumDevs - stub\n"));
86 return 0;
87}
88
89MMRESULT WIN32API waveInGetPosition(HWAVEIN hwi, LPMMTIME pmmt, UINT cbmmt)
90{
91 dprintf(("WINMM:waveInGetPosition - stub\n"));
92 return MMSYSERR_INVALHANDLE;
93}
94
95MMRESULT WIN32API waveInMessage(HWAVEIN hwi, UINT uMsg, DWORD dw1, DWORD dw2)
96{
97 dprintf(("WINMM:waveInMessage - stub\n"));
98 return MMSYSERR_INVALHANDLE;
99}
100
101
102MMRESULT WIN32API waveInOpen(LPHWAVEIN phwi, UINT uDeviceID,
103 const LPWAVEFORMATEX pwfx,
104 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen)
105{
106 dprintf(("WINMM:waveInOpen - stub\n"));
107 return MMSYSERR_BADDEVICEID;
108}
109
110MMRESULT WIN32API waveInPrepareHeader(HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh)
111{
112 dprintf(("WINMM:waveInPrepareHeader - stub\n"));
113 return MMSYSERR_INVALHANDLE;
114}
115
116MMRESULT WIN32API waveInReset(HWAVEIN hwi)
117{
118 dprintf(("WINMM:waveInReset - stub\n"));
119 return MMSYSERR_INVALHANDLE;
120}
121
122MMRESULT WIN32API waveInStart(HWAVEIN hwi)
123{
124 dprintf(("WINMM:waveInStart - stub\n"));
125 return MMSYSERR_INVALHANDLE;
126}
127
128MMRESULT WIN32API waveInStop(HWAVEIN hwi)
129{
130 dprintf(("WINMM:waveInStop - stub\n"));
131 return MMSYSERR_INVALHANDLE;
132}
133
134MMRESULT WIN32API waveInUnprepareHeader(HWAVEIN hwi, LPWAVEHDR pwh, UINT cbwh)
135{
136 dprintf(("WINMM:waveInUnprepareHeader - stub\n"));
137 return MMSYSERR_INVALHANDLE;
138}
139
Note: See TracBrowser for help on using the repository browser.