#include "system.h"
+#if defined(PLATFORM_UNIX) && !defined(TARGET_SDL)
+#define AUDIO_UNIX_NATIVE
+#endif
+
#if defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD) || defined(VOXWARE)
#define AUDIO_LINUX_IOCTL
#endif
};
struct SampleInfo
-{
- int type;
+{
char *source_filename;
int num_references;
+ int type;
+ int format;
long data_len;
void *data_ptr;
- int format;
};
typedef struct SampleInfo SoundInfo;
int nr;
int volume;
- int stereo;
+ int stereo_position;
-#if 1
int state;
-#else
- boolean loop;
- boolean music;
- boolean fade_sound;
- boolean stop_sound;
- boolean stop_all_sounds;
- boolean reload_sounds;
- boolean reload_music;
-#endif
- int playingtime;
- long playingpos;
+ unsigned long playing_starttime;
+ unsigned long playing_pos;
+ int type;
+ int format;
long data_len;
void *data_ptr;
- int format;
#if defined(PLATFORM_MSDOS)
int voice;
#endif
};
+typedef struct SoundControl SoundControl;
+
/* general sound functions */
void UnixOpenAudio(void);
void UnixCloseAudio(void);