1 |
|
/* |
2 |
|
* sys.h - System-dependant functions |
3 |
|
* |
4 |
< |
* SIDPlayer (C) Copyright 1996-2000 Christian Bauer |
4 |
> |
* SIDPlayer (C) Copyright 1996-2003 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
29 |
|
|
30 |
|
#include "types.h" |
31 |
|
|
32 |
< |
// Dummy SDL definitions |
32 |
> |
|
33 |
> |
#if defined (SDL) |
34 |
> |
|
35 |
> |
#include <SDL.h> |
36 |
> |
|
37 |
> |
#else |
38 |
> |
|
39 |
> |
// Dummy SDL definitions for SIDPlayer |
40 |
|
typedef struct { |
41 |
|
int freq; // DSP frequency -- samples per second |
42 |
|
uint16 format; // Audio data format |
52 |
|
#define AUDIO_S8 0x8008 |
53 |
|
#define AUDIO_S16SYS 0x0010 |
54 |
|
|
55 |
< |
#define SDL_OpenAudio(desired, obtained) |
55 |
> |
#define SDL_OpenAudio(desired, obtained) (0) |
56 |
|
#define SDL_CloseAudio() |
57 |
|
#define SDL_PauseAudio(onoff) |
58 |
|
#define SDL_LockAudio() |
59 |
|
#define SDL_UnlockAudio() |
60 |
+ |
#define SDL_GetError() ("unknown error") |
61 |
+ |
|
62 |
+ |
#endif |
63 |
+ |
|
64 |
+ |
// Microsecond-resolution timing functions |
65 |
+ |
extern uint64 GetTicks_usec(); |
66 |
+ |
extern void Delay_usec(uint32 usec); |
67 |
|
|
68 |
|
#endif |