--- SIDPlayer/src/sys.h 2000/07/28 12:42:30 1.1.1.1 +++ SIDPlayer/src/sys.h 2004/01/12 15:15:49 1.6 @@ -1,7 +1,7 @@ /* * sys.h - System-dependant functions * - * SIDPlayer (C) Copyright 1996-2000 Christian Bauer + * SIDPlayer (C) Copyright 1996-2004 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,17 @@ 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 + +// Microsecond-resolution timing functions +extern uint64 GetTicks_usec(); +extern void Delay_usec(uint32 usec); #endif