rnd-20020421-1-src
[rocksndiamonds.git] / src / libgame / sound.h
index 939e5a0045bfc718bdeb2ff9b99f90bc350db22f..6ca5f9756d14f754a8da36b2fcf3550e75bfb544 100644 (file)
@@ -26,6 +26,9 @@
 #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;
@@ -148,10 +156,13 @@ struct SoundHeader_8SVX
   unsigned long chunk_size;
   char magic_8SVX[4];
 };
+#endif
 
 struct SampleInfo
 { 
+#if 0
   char *name;
+#endif
   byte *data_ptr;
   long data_len;
 
@@ -175,6 +186,8 @@ struct SoundControl
   boolean fade_sound;
   boolean stop_sound;
   boolean stop_all_sounds;
+  boolean reload_sounds;
+  boolean reload_music;
   int playingtime;
   long playingpos;
   long data_len;
@@ -195,7 +208,10 @@ void StartSoundserver(void);
 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);
@@ -210,6 +226,8 @@ void StopMusic(void);
 void StopSound(int);
 void StopSounds(void);
 void StopSoundExt(int, int);
+void InitReloadSounds(char *);
+void InitReloadMusic(char *);
 void FreeSounds(int);
 
 #endif