/* contant definitions */
-#define DEFAULT_DEPTH 0
+/* the additional 'b' is needed for Win32 to open files in binary mode */
+#define MODE_READ "rb"
+#define MODE_WRITE "wb"
+#define MODE_APPEND "ab"
-#define FULLSCREEN_NOT_AVAILABLE FALSE
-#define FULLSCREEN_AVAILABLE TRUE
+#define DEFAULT_DEPTH 0
+
+#define FULLSCREEN_NOT_AVAILABLE FALSE
+#define FULLSCREEN_AVAILABLE TRUE
/* values for button_status */
#define MB_NOT_PRESSED FALSE
+#define MB_NOT_RELEASED TRUE
#define MB_RELEASED FALSE
#define MB_PRESSED TRUE
#define MB_MENU_CHOICE FALSE
#define RW_BASE_PATH RW_GAME_DIR
#define GRAPHICS_DIRECTORY "graphics"
+#define MUSIC_DIRECTORY "music"
#define SOUNDS_DIRECTORY "sounds"
#define LEVELS_DIRECTORY "levels"
#define TAPES_DIRECTORY "tapes"
struct AudioSystemInfo
{
boolean sound_available;
+ boolean music_available;
boolean loops_available;
+ boolean mods_available;
boolean sound_enabled;
+
int soundserver_pipe[2];
int soundserver_pid;
char *device_name;
int device_fd;
+
+ int channels;
+ int music_channel;
+ int music_nr;
};
struct GfxInfo
Bitmap *LoadImage(char *);
-inline boolean OpenAudio(struct AudioSystemInfo *);
-inline void CloseAudio(struct AudioSystemInfo *);
+inline void OpenAudio(void);
+inline void CloseAudio(void);
inline void SetAudioMode(boolean);
inline void InitEventFilter(EventFilter);