--- SIDPlayer/src/sys.h 2000/07/28 12:42:30 1.1 +++ SIDPlayer/src/sys.h 2001/01/21 18:04:46 1.3 @@ -1,7 +1,7 @@ /* * sys.h - System-dependant functions * - * SIDPlayer (C) Copyright 1996-2000 Christian Bauer + * SIDPlayer (C) Copyright 1996-2001 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,14 @@ #include "types.h" -// Dummy SDL definitions + +#if defined (SDL) + +#include + +#else + +// Dummy SDL definitions for SIDPlayer typedef struct { int freq; // DSP frequency -- samples per second uint16 format; // Audio data format @@ -45,10 +52,13 @@ typedef struct { #define AUDIO_S8 0x8008 #define AUDIO_S16SYS 0x0010 -#define SDL_OpenAudio(desired, obtained) +#define SDL_OpenAudio(desired, obtained) (0) #define SDL_CloseAudio() #define SDL_PauseAudio(onoff) #define SDL_LockAudio() #define SDL_UnlockAudio() +#define SDL_GetError() ("unknown error") + +#endif #endif