Lephisto/src/sound.h

25 lines
641 B
C

#pragma once
extern int sound_disabled;
/* Sound subsystem. */
int sound_init(void);
void sound_exit(void);
int sound_update(void);
/* Sound manupulation functions. */
int sound_get(char* name);
int sound_volume(const double vol);
int sound_play(int sound);
int sound_playPos(int sound, double x, double y);
void sound_stop(int voice);
int sound_updatePos(int voice, double x, double y);
int sound_updateListener(double dir, double x, double y);
/* Group functions. */
int sound_reserve(int num);
int sound_createGroup(int tag, int start, int size);
int sound_playGroup(int group, int sound, int once);
void sound_stopGroup(int group);