X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;ds=sidebyside;f=Source%2FSounds.h;h=12d36601e6616ab1130dd3aea3e1ad5b0129f472;hb=ac2329020de30416484a59f41e1156439d143b87;hp=042afae6f0395d670b81c32a5c78da0fe37f42ae;hpb=db2e2199f99aac924e695799551bf8fdbe164247;p=lugaru.git diff --git a/Source/Sounds.h b/Source/Sounds.h index 042afae..12d3660 100644 --- a/Source/Sounds.h +++ b/Source/Sounds.h @@ -23,9 +23,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define SOUNDS_H enum sound_types { -#define DECLARE_SOUND(id) id, +#define DECLARE_SOUND(id, filename) id, #include "Sounds.def" #undef DECLARE_SOUND +sounds_count }; +extern struct OPENAL_SAMPLE *samp[sounds_count]; + +extern void loadAllSounds(); + +extern void emit_sound_at(int soundid, const XYZ &pos = XYZ(), float vol = 256.f); + +extern int footstepsound, footstepsound2, footstepsound3, footstepsound4; #endif