#include <linux/soundcard.h>
#elif defined(PLATFORM_FREEBSD)
#include <machine/soundcard.h>
+#elif defined(PLATFORM_NETBSD)
+#include <sys/ioctl.h>
+#include <sys/audioio.h>
#elif defined(PLATFORM_HPUX)
#include <sys/audio.h>
#endif
#if defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD) || defined(VOXWARE)
+#define AUDIO_LINUX_IOCTL
+#endif
+
+#if defined(AUDIO_LINUX_IOCTL) || defined(PLATFORM_NETBSD)
#define AUDIO_STREAMING_DSP
#endif
#endif
#endif
+#if 0
struct SoundHeader_SUN
{
unsigned long magic;
unsigned long chunk_size;
char magic_8SVX[4];
};
+#endif
struct SampleInfo
{
+#if 0
char *name;
+#endif
byte *data_ptr;
long data_len;
boolean fade_sound;
boolean stop_sound;
boolean stop_all_sounds;
+ boolean reload_sounds;
+ boolean reload_music;
int playingtime;
long playingpos;
long data_len;
void SoundServer(void);
/* sound client functions */
+void ReloadSounds(void);
+void ReloadMusic(void);
boolean LoadSound(char *);
+boolean LoadCustomSound(char *);
boolean LoadMod(char *);
int LoadMusic(void);
void PlayMusic(int);
void StopSound(int);
void StopSounds(void);
void StopSoundExt(int, int);
+void InitReloadSounds(char *);
+void InitReloadMusic(char *);
void FreeSounds(int);
#endif