#ifndef SOUND_H
#define SOUND_H
-#include "main.h"
#include <math.h>
+#include "main.h"
#ifdef linux
#include <linux/soundcard.h>
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;
int nr;
int volume;
int stereo;
- BOOL active;
- BOOL loop;
- BOOL fade_sound;
- BOOL stop_sound;
- BOOL stop_all_sounds;
+ boolean active;
+ boolean loop;
+ boolean fade_sound;
+ boolean stop_sound;
+ boolean stop_all_sounds;
int playingtime;
long playingpos;
long data_len;
int ulaw_to_linear(unsigned char);
/* application functions */
-BOOL LoadSound(struct SoundInfo *);
+boolean LoadSound(struct SoundInfo *);
void PlaySound(int);
void PlaySoundStereo(int, int);
void PlaySoundLoop(int);
-void PlaySoundExt(int, int, int, BOOL);
+void PlaySoundExt(int, int, int, boolean);
void FadeSound(int);
void FadeSounds(void);
void StopSound(int);