2 * The stubs here are totaly wrong so please help a brother out
3 * and fix this shit. sedwards 9-24-02
5 * Added more stubs for bochs 1.3 once again still mostly wrong
6 * but bochs gets further now. 12-14-02
8 * [8-18-03] AG: I've added PlaySound/A/W and implemented sndPlaySoundA/W to
9 * call these. I've also tried to match the parameter names and types with the
23 /* general constants */
24 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
25 #define MAXERRORLENGTH 256 /* max error text length (including NULL) */
26 #define MAX_JOYSTICKOEMVXDNAME 260 /* max oem vxd name length (including NULL) */
29 // mmsystem.h ends here
33 waveOutReset(HWAVEOUT hwo)
35 // Possible return values:
36 // MMSYSERR_INVALHANDLE, MMSYSERR_NODRIVER, MMSYSERR_NOMEM, MMSYSERR_NOTSUPPORTED
38 DbgPrint("waveOutReset stub\n");
44 MMRESULT WINAPI waveOutWrite(HWAVEOUT hwo, LPWAVEHDR pwh,
47 // Posible return values:
48 // MMSYSERR_INVALHANDLE, MMSYSERR_NODRIVER, MMSYSERR_NOMEM, WAVERR_UNPREPARED
50 DbgPrint("waveOutWrite stub\n");
55 // PlaySound() needs exporting
60 PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound)
62 DbgPrint("PlaySoundA stub\n");
69 PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound)
71 DbgPrint("PlaySoundW stub\n");
78 PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound)
81 return PlaySoundA(pszSound, hmod, fdwSound);
87 sndPlaySoundA(LPCSTR lpszSound, UINT fuSound)
89 fuSound &= SND_ASYNC | SND_LOOP | SND_MEMORY | SND_NODEFAULT | SND_NOSTOP | SND_SYNC;
90 return PlaySoundA(lpszSound, NULL, fuSound);
95 sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound)
97 fuSound &= SND_ASYNC | SND_LOOP | SND_MEMORY | SND_NODEFAULT | SND_NOSTOP | SND_SYNC;
98 return PlaySoundW(lpszSound, NULL, fuSound);
103 midiOutReset(HMIDIOUT hmo)
105 DbgPrint("midiOutReset stub\n");
112 waveOutPrepareHeader(HWAVEOUT hwo, LPWAVEHDR pwh,
115 DbgPrint("waveOutPrepareHeader stub\n");
117 pwh->dwFlags |= WHDR_PREPARED;
123 waveOutGetErrorTextA(MMRESULT mmrError, LPSTR pszText,
126 DbgPrint("waveOutGetErrorTextA stub\n");
133 waveOutOpen(LPHWAVEOUT pwho, UINT uDeviceID,
134 LPCWAVEFORMATEX pwfx, DWORD dwCallback,
135 DWORD dwCallbackInstance, DWORD fdwOpen)
137 DbgPrint("waveOutOpen stub\n");
144 waveOutClose(HWAVEOUT hwo)
146 DbgPrint("waveOutClose stub\n");
152 midiOutClose(HMIDIOUT hmo)
154 DbgPrint("midiOutClose stub\n");
160 midiOutUnprepareHeader(HWAVEOUT hwo, LPMIDIHDR pwh,
163 DbgPrint("midiOutUnprepareHeader stub\n");
169 waveOutUnprepareHeader(HWAVEOUT hwo, LPWAVEHDR pwh,
172 DbgPrint("waveOutUnprepareHeader stub\n");
173 pwh->dwFlags &= ! WHDR_PREPARED;
180 midiOutPrepareHeader(HMIDIOUT hmo, LPMIDIHDR lpMidiOutHdr,
183 DbgPrint("midiOutPrepareHeader stub\n");
189 midiOutLongMsg(HMIDIOUT hmo, LPMIDIHDR lpMidiOutHdr,
192 DbgPrint("midiOutLongMsg stub\n");
200 DbgPrint("timeGetTime stub\n");
204 MMRESULT WINAPI joyGetDevCapsA(UINT uJoyID, LPJOYCAPSA pjc, UINT cbjc)
206 DbgPrint("joyGetDevCapsA stub\n");
207 return MMSYSERR_ERROR;
210 UINT WINAPI joyGetNumDevs(void)
212 DbgPrint("joyGetNumDevs stub\n");
216 MMRESULT WINAPI joyGetPosEx(UINT uJoyID, LPJOYINFOEX pji)
218 DbgPrint("joyGetPosEx stub\n");
219 return MMSYSERR_ERROR;
222 MCIERROR WINAPI mciSendCommandA(MCIDEVICEID mciId, UINT uMsg, DWORD dwParam1, DWORD dwParam2)
224 DbgPrint("mciSendCommandA stub\n");
225 return MMSYSERR_ERROR;