ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SIDPlayer/src/sys.h
(Generate patch)

Comparing SIDPlayer/src/sys.h (file contents):
Revision 1.1.1.1 by cebix, 2000-07-28T12:42:30Z vs.
Revision 1.6 by cebix, 2004-01-12T15:15:49Z

# Line 1 | Line 1
1   /*
2   *  sys.h - System-dependant functions
3   *
4 < *  SIDPlayer (C) Copyright 1996-2000 Christian Bauer
4 > *  SIDPlayer (C) Copyright 1996-2004 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
# Line 29 | Line 29
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
# Line 45 | Line 52 | typedef struct {
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines