X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAudio%2FSounds.hpp;h=e4acf4fcdfb9a5c6ab606fb8aad5744c20ed970a;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hp=4ceddeca15013144196bb1675b490c4db21f44ad;hpb=03fbcc5b5e18dbf62c48849fc8d02cd250aa744e;p=lugaru.git diff --git a/Source/Audio/Sounds.hpp b/Source/Audio/Sounds.hpp index 4ceddec..e4acf4f 100644 --- a/Source/Audio/Sounds.hpp +++ b/Source/Audio/Sounds.hpp @@ -1,5 +1,5 @@ /* -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -22,23 +22,24 @@ along with Lugaru. If not, see . #include "Math/XYZ.hpp" -enum sound_types { +enum sound_type +{ #define DECLARE_SOUND(id, filename) id, #include "Sounds.def" #undef DECLARE_SOUND sounds_count }; -extern struct OPENAL_SAMPLE *samp[sounds_count]; +extern struct OPENAL_SAMPLE* samp[sounds_count]; extern int channels[]; extern void loadAllSounds(); extern void addEnvSound(XYZ coords, float vol = 16, float life = .4); -extern void emit_sound_at(int soundid, const XYZ &pos = XYZ(), float vol = 256.f); +extern void emit_sound_at(int soundid, const XYZ& pos = XYZ(), float vol = 256.f); extern void emit_sound_np(int soundid, float vol = 256.f); -extern void emit_stream_at(int soundid, const XYZ &pos = XYZ(), float vol = 256.f); +extern void emit_stream_at(int soundid, const XYZ& pos = XYZ(), float vol = 256.f); extern void emit_stream_np(int soundid, float vol = 256.f); extern void resume_stream(int soundid); extern void pause_sound(int soundid);