#ifndef VOXWARE
#define VOXWARE
#endif
+
+#if 0
/* where is the right declaration for 'ioctl'? */
extern void ioctl(long, long, void *);
+#else
+#include <sys/ioctl.h>
+#endif
+
#endif
#ifdef __FreeBSD__
char magic_8SVX[4];
};
-struct SoundHeader_WAV
-{
- char magic_RIFF[4];
- unsigned long header_size;
- char magic_WAVE[4];
- char some_stuff[24];
- char magic_DATA[4];
- unsigned long data_size;
-};
-
struct SoundInfo
{
- unsigned char *name;
- unsigned char *file_ptr;
- char *data_ptr;
- long file_len, data_len;
+ char *name;
+ byte *data_ptr;
+ long data_len;
#ifdef MSDOS
SAMPLE *sample_ptr;
#endif
int playingtime;
long playingpos;
long data_len;
- char *data_ptr;
+ byte *data_ptr;
#ifdef MSDOS
int voice;
#endif
};
-/* sound server functions */
+/* start sound server */
void SoundServer(void);
-void SoundServer_InsertNewSound(struct SoundControl);
-void SoundServer_StopSound(int);
-void SoundServer_StopAllSounds(void);
-void HPUX_Audio_Control(void);
-unsigned char linear_to_ulaw(int);
-int ulaw_to_linear(unsigned char);
-
-/* application functions */
+
+/* client functions */
boolean LoadSound(struct SoundInfo *);
void PlaySound(int);
void PlaySoundStereo(int, int);