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

Last change on this file since 95 was 95, checked in by phaller, 26 years ago

Add: added cvs variable $Id$ to source files.

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