]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Audio/Sounds.hpp
clang-format: Apply to all headers
[lugaru.git] / Source / Audio / Sounds.hpp
index 1ec3139b48a7e6b688888d9d993be8430b9a8651..e4acf4fcdfb9a5c6ab606fb8aad5744c20ed970a 100644 (file)
@@ -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.
 
@@ -20,25 +20,26 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef _SOUNDS_HPP_
 #define _SOUNDS_HPP_
 
-#include "Math/Quaternions.hpp"
+#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_SAMPLEsamp[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 XYZpos = 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 XYZpos = 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);