Updated for embedded Visual C++ 4.0

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40454
This commit is contained in:
Sam Lantinga 2002-08-20 00:20:06 +00:00
parent a12335985b
commit a3897183c7
16 changed files with 126 additions and 110 deletions

View file

@ -63,7 +63,7 @@ static int Audio_Available(void)
/* Version check DSOUND.DLL (Is DirectX okay?) */
dsound_ok = 0;
DSoundDLL = LoadLibrary("DSOUND.DLL");
DSoundDLL = LoadLibrary(TEXT("DSOUND.DLL"));
if ( DSoundDLL != NULL ) {
/* We just use basic DirectSound, we're okay */
/* Yay! */
@ -95,7 +95,7 @@ static int Audio_Available(void)
* to fall back to the DIB driver. */
if (dsound_ok) {
/* DirectSoundCaptureCreate was added in DX5 */
if (!GetProcAddress(DSoundDLL, "DirectSoundCaptureCreate"))
if (!GetProcAddress(DSoundDLL, TEXT("DirectSoundCaptureCreate")))
dsound_ok = 0;
}
@ -121,10 +121,10 @@ static int DX5_Load(void)
int status;
DX5_Unload();
DSoundDLL = LoadLibrary("DSOUND.DLL");
DSoundDLL = LoadLibrary(TEXT("DSOUND.DLL"));
if ( DSoundDLL != NULL ) {
DSoundCreate = (void *)GetProcAddress(DSoundDLL,
"DirectSoundCreate");
TEXT("DirectSoundCreate"));
}
if ( DSoundDLL && DSoundCreate ) {
status = 0;
@ -189,7 +189,7 @@ AudioBootStrap DSOUND_bootstrap = {
static void SetDSerror(const char *function, int code)
{
static const char *error;
static char errbuf[BUFSIZ];
static char errbuf[1024];
errbuf[0] = 0;
switch (code) {