Added more stubbs for bochs

svn path=/trunk/; revision=4053
This commit is contained in:
Steven Edwards 2003-01-22 17:52:14 +00:00
parent 834dbc5fd5
commit 24ed00435b
4 changed files with 112 additions and 15 deletions

View file

@ -11,7 +11,7 @@
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <windows.h> #include <windows.h>
#define NDEBUG //#define NDEBUG
#include <debug.h> #include <debug.h>
INT STDCALL INT STDCALL

View file

@ -1,11 +1,11 @@
/* /*
The stubs here are totaly wrong so please help a brother out * The stubs here are totaly wrong so please help a brother out
and fix this shit. sedwards 9-24-02 * and fix this shit. sedwards 9-24-02
*
Added more stubs for bochs 1.3 once again still mostly wrong * Added more stubs for bochs 1.3 once again still mostly wrong
but bochs gets further now. 12-14-02 * but bochs gets further now. 12-14-02
*
*/ */
#include <windows.h> #include <windows.h>
@ -15,7 +15,7 @@ UINT
WINAPI WINAPI
waveOutReset(HWAVEOUT hWaveOut) waveOutReset(HWAVEOUT hWaveOut)
{ {
DbgPrint("waveOutReset unimplemented\n"); DbgPrint("waveOutReset stub\n");
return 1; return 1;
} }
@ -23,7 +23,7 @@ waveOutReset(HWAVEOUT hWaveOut)
UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, LPCSTR pszSoundA, UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, LPCSTR pszSoundA,
UINT uSize) UINT uSize)
{ {
DbgPrint("waveOutWrite unimplemented\n"); DbgPrint("waveOutWrite stub\n");
return 1; return 1;
} }
@ -32,7 +32,7 @@ WINBOOL
STDCALL STDCALL
sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags) sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
{ {
DbgPrint("sndPlaySoundA unimplemented\n"); DbgPrint("sndPlaySoundA stub\n");
return 1; return 1;
} }
@ -40,7 +40,7 @@ WINBOOL
STDCALL STDCALL
sndPlaySoundW(LPCSTR pszSoundA, UINT uFlags) sndPlaySoundW(LPCSTR pszSoundA, UINT uFlags)
{ {
DbgPrint("sndPlaySoundW unimplemented\n"); DbgPrint("sndPlaySoundW stub\n");
return 1; return 1;
} }
@ -48,6 +48,87 @@ WINBOOL
STDCALL STDCALL
midiOutReset(HWAVEOUT hWaveOut) 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; return 1;
} }

View file

@ -1,8 +1,16 @@
LIBRARY WINMM.DLL LIBRARY WINMM.DLL
EXPORTS EXPORTS
; add more exports as needed
midiOutReset@4 midiOutReset@4
midiOutClose@4
midiOutUnprepareHeader@12
sndPlaySoundA@8 sndPlaySoundA@8
sndPlaySoundW@8 sndPlaySoundW@8
waveOutReset@4 waveOutReset@4
waveOutWrite@12 waveOutWrite@12
waveOutPrepareHeader@12
waveOutGetErrorTextA@12
waveOutOpen@24
waveOutClose@4
waveOutUnprepareHeader@12
midiOutPrepareHeader@12
midiOutLongMsg@12

View file

@ -1,8 +1,16 @@
LIBRARY WINMM.DLL LIBRARY WINMM.DLL
EXPORTS EXPORTS
; add more exports as needed
midiOutReset=midiOutReset@4 midiOutReset=midiOutReset@4
midiOutClose=midiOutClose@4
midiOutUnprepareHeader=midiOutUnprepareHeader@12
sndPlaySoundA=sndPlaySoundA@8 sndPlaySoundA=sndPlaySoundA@8
sndPlaySoundW=sndPlaySoundW@8 sndPlaySoundW=sndPlaySoundW@8
waveOutReset=waveOutReset@4 waveOutReset=waveOutReset@4
waveOutWrite=waveOutWrite@12 waveOutWrite=waveOutWrite@12
waveOutPrepareHeader=waveOutPrepareHeader@12
waveOutGetErrorTextA=waveOutGetErrorTextA@12
waveOutOpen=waveOutOpen@24
waveOutClose=waveOutClose@4
waveOutUnprepareHeader=waveOutUnprepareHeader@12
midiOutPrepareHeader=midiOutPrepareHeader@12
midiOutLongMsg=midiOutLongMsg@12