about summary refs log tree commit diff
path: root/src/game/client/components/sounds.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/sounds.hpp')
-rw-r--r--src/game/client/components/sounds.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/client/components/sounds.hpp b/src/game/client/components/sounds.hpp
new file mode 100644
index 00000000..5e3dfd6e
--- /dev/null
+++ b/src/game/client/components/sounds.hpp
@@ -0,0 +1,21 @@
+#include <game/client/component.hpp>
+
+class SOUNDS : public COMPONENT
+{
+public:
+	// sound channels
+	enum
+	{
+		CHN_GUI=0,
+		CHN_MUSIC,
+		CHN_WORLD,
+		CHN_GLOBAL,
+	};
+
+	virtual void on_init();
+	virtual void on_render();
+	
+	void play(int chn, int setid, float vol, vec2 pos);
+};
+
+