1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#include "variable.h"
#ifdef _WIN32
#include <windows.h>
#else
#define HWND void *
#endif
// Sound list stuff
struct soundList {
int sound;
struct soundList * next;
struct soundList * prev;
int cacheIndex;
int vol;
};
soundList *deleteSoundFromList (soundList *s);
void playSoundList(soundList *s);
// GENERAL...
bool initSoundStuff (HWND);
void killSoundStuff ();
// MUSIC...
bool playMOD (int, int, int);
void stopMOD (int);
void setMusicVolume (int a, int v);
void setDefaultMusicVolume (int v);
// SAMPLES...
int cacheSound (int f);
bool startSound (int, bool = false);
void huntKillSound (int a);
void huntKillFreeSound (int filenum);
void setSoundVolume (int a, int v);
void setDefaultSoundVolume (int v);
void setSoundLoop (int a, int s, int e);
bool stillPlayingSound (int ch);
bool getSoundCacheStack (stackHandler * sH);
int findInSoundCache (int a);
void debugSounds ();
void loadSounds (FILE * fp);
void saveSounds (FILE * fp);
unsigned int getSoundSource(int index);
|