rnd-20001204-1-src
[rocksndiamonds.git] / src / libgame / sound.h
index 238a5b19dfea138b47a1448b8d35f221ec39c0ea..d50b4a22936e1aff3539f5dec703b6034c879ad5 100644 (file)
@@ -1,14 +1,14 @@
 /***********************************************************
-*  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
+* Artsoft Retro-Game Library                               *
 *----------------------------------------------------------*
-*  (c) 1995-98 Artsoft Entertainment                       *
-*              Holger Schemel                              *
-*              Oststrasse 11a                              *
-*              33604 Bielefeld                             *
-*              phone: ++49 +521 290471                     *
-*              email: aeglos@valinor.owl.de                *
+* (c) 1994-2000 Artsoft Entertainment                      *
+*               Holger Schemel                             *
+*               Detmolder Strasse 189                      *
+*               33604 Bielefeld                            *
+*               Germany                                    *
+*               e-mail: info@artsoft.org                   *
 *----------------------------------------------------------*
-*  sound.c                                                 *
+* sound.h                                                  *
 ***********************************************************/
 
 #ifndef SOUND_H
 
 #include <math.h>
 
+#include "platform.h"
+
 #if defined(PLATFORM_LINUX)
 #include <sys/ioctl.h>
 #endif
 
-#define SND_BLOCKSIZE 4096
-
 #if defined(PLATFORM_LINUX)
 #include <linux/soundcard.h>
 #elif defined(PLATFORM_FREEBSD)
 #include <machine/soundcard.h>
 #elif defined(PLATFORM_HPUX)
 #include <sys/audio.h>
-#undef  SND_BLOCKSIZE
-#define SND_BLOCKSIZE 32768
 #endif
 
-#include "libgame.h"
+#include "system.h"
+
 
 #if defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD) || defined(VOXWARE)
 #define AUDIO_STREAMING_DSP
 #define MAX_SOUNDS_PLAYING     8
 #endif
 
+#if !defined(PLATFORM_HPUX)
+#define SND_BLOCKSIZE 4096
+#else
+#define SND_BLOCKSIZE 32768
+#endif
+
 /* some values for PlaySound(), StopSound() and friends */
 #if !defined(PLATFORM_MSDOS)
 #define PSND_SILENCE           0
@@ -155,7 +160,8 @@ void UnixCloseAudio(struct AudioSystemInfo *);
 void SoundServer(void);
 
 /* sound client functions */
-boolean LoadSound(struct SampleInfo *);
+void AllocSoundArray(int);
+boolean LoadSound(int, char *);
 void PlaySound(int);
 void PlaySoundStereo(int, int);
 void PlaySoundLoop(int);