From 24ed00435b18e97d84fc299dfccc192162ab39c6 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Wed, 22 Jan 2003 17:52:14 +0000 Subject: [PATCH] Added more stubbs for bochs svn path=/trunk/; revision=4053 --- reactos/lib/winmm/dllmain.c | 2 +- reactos/lib/winmm/misc/stubs.c | 105 +++++++++++++++++++++++++++++---- reactos/lib/winmm/winmm.def | 10 +++- reactos/lib/winmm/winmm.edf | 10 +++- 4 files changed, 112 insertions(+), 15 deletions(-) diff --git a/reactos/lib/winmm/dllmain.c b/reactos/lib/winmm/dllmain.c index 2eb5093cb28..98404da0446 100644 --- a/reactos/lib/winmm/dllmain.c +++ b/reactos/lib/winmm/dllmain.c @@ -11,7 +11,7 @@ #include #include -#define NDEBUG +//#define NDEBUG #include INT STDCALL diff --git a/reactos/lib/winmm/misc/stubs.c b/reactos/lib/winmm/misc/stubs.c index e5265d74b31..4744cb57bb8 100644 --- a/reactos/lib/winmm/misc/stubs.c +++ b/reactos/lib/winmm/misc/stubs.c @@ -1,11 +1,11 @@ /* - The stubs here are totaly wrong so please help a brother out - and fix this shit. sedwards 9-24-02 - - Added more stubs for bochs 1.3 once again still mostly wrong - but bochs gets further now. 12-14-02 - -*/ + * The stubs here are totaly wrong so please help a brother out + * and fix this shit. sedwards 9-24-02 + * + * Added more stubs for bochs 1.3 once again still mostly wrong + * but bochs gets further now. 12-14-02 + * + */ #include @@ -15,7 +15,7 @@ UINT WINAPI waveOutReset(HWAVEOUT hWaveOut) { - DbgPrint("waveOutReset unimplemented\n"); + DbgPrint("waveOutReset stub\n"); return 1; } @@ -23,7 +23,7 @@ waveOutReset(HWAVEOUT hWaveOut) UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, LPCSTR pszSoundA, UINT uSize) { - DbgPrint("waveOutWrite unimplemented\n"); + DbgPrint("waveOutWrite stub\n"); return 1; } @@ -32,7 +32,7 @@ WINBOOL STDCALL sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags) { - DbgPrint("sndPlaySoundA unimplemented\n"); + DbgPrint("sndPlaySoundA stub\n"); return 1; } @@ -40,7 +40,7 @@ WINBOOL STDCALL sndPlaySoundW(LPCSTR pszSoundA, UINT uFlags) { - DbgPrint("sndPlaySoundW unimplemented\n"); + DbgPrint("sndPlaySoundW stub\n"); return 1; } @@ -48,6 +48,87 @@ WINBOOL STDCALL midiOutReset(HWAVEOUT hWaveOut) { - DbgPrint("midiOutReset unimplemented\n"); + DbgPrint("midiOutReset stub\n"); + return 1; +} + +WINBOOL +STDCALL +waveOutPrepareHeader(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("waveOutPrepareHeader stub\n"); + return 1; +} + +WINBOOL +STDCALL +waveOutGetErrorTextA(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("waveOutGetErrorTextA stub\n"); + return 1; +} + +WINBOOL +STDCALL +waveOutOpen(HWAVEOUT* lphWaveOut, UINT uDeviceID, + const lpFormat, DWORD dwCallback, + DWORD dwInstance, DWORD dwFlags) +{ + DbgPrint("waveOutOpen stub\n"); + return 1; +} + +UINT +WINAPI +waveOutClose(HWAVEOUT hWaveOut) +{ + DbgPrint("waveOutClose stub\n"); + return 1; +} + +WINBOOL +STDCALL +midiOutClose(HWAVEOUT hWaveOut) +{ + DbgPrint("midiOutClose stub\n"); + return 1; +} + +WINBOOL +STDCALL +midiOutUnprepareHeader(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("midiOutUnprepareHeader stub\n"); + return 1; +} + +WINBOOL +STDCALL +waveOutUnprepareHeader(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("waveOutUnprepareHeader stub\n"); + return 1; +} + + +WINBOOL +STDCALL +midiOutPrepareHeader(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("midiOutPrepareHeader stub\n"); + return 1; +} + +WINBOOL +STDCALL +midiOutLongMsg(HWAVEOUT hWaveOut, LPCSTR pszSoundA, + UINT uSize) +{ + DbgPrint("midiOutLongMsg stub\n"); return 1; } diff --git a/reactos/lib/winmm/winmm.def b/reactos/lib/winmm/winmm.def index 3cc61e9b4d1..d0a9cbb64d2 100644 --- a/reactos/lib/winmm/winmm.def +++ b/reactos/lib/winmm/winmm.def @@ -1,8 +1,16 @@ LIBRARY WINMM.DLL EXPORTS -; add more exports as needed midiOutReset@4 +midiOutClose@4 +midiOutUnprepareHeader@12 sndPlaySoundA@8 sndPlaySoundW@8 waveOutReset@4 waveOutWrite@12 +waveOutPrepareHeader@12 +waveOutGetErrorTextA@12 +waveOutOpen@24 +waveOutClose@4 +waveOutUnprepareHeader@12 +midiOutPrepareHeader@12 +midiOutLongMsg@12 \ No newline at end of file diff --git a/reactos/lib/winmm/winmm.edf b/reactos/lib/winmm/winmm.edf index 9f52b59f3f9..e53abcdd34c 100644 --- a/reactos/lib/winmm/winmm.edf +++ b/reactos/lib/winmm/winmm.edf @@ -1,8 +1,16 @@ LIBRARY WINMM.DLL EXPORTS -; add more exports as needed midiOutReset=midiOutReset@4 +midiOutClose=midiOutClose@4 +midiOutUnprepareHeader=midiOutUnprepareHeader@12 sndPlaySoundA=sndPlaySoundA@8 sndPlaySoundW=sndPlaySoundW@8 waveOutReset=waveOutReset@4 waveOutWrite=waveOutWrite@12 +waveOutPrepareHeader=waveOutPrepareHeader@12 +waveOutGetErrorTextA=waveOutGetErrorTextA@12 +waveOutOpen=waveOutOpen@24 +waveOutClose=waveOutClose@4 +waveOutUnprepareHeader=waveOutUnprepareHeader@12 +midiOutPrepareHeader=midiOutPrepareHeader@12 +midiOutLongMsg=midiOutLongMsg@12 \ No newline at end of file