about summary refs log tree commit diff
path: root/src/game/client/components/sounds.hpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-29 05:34:18 +0000
commit0511e1152a13ad99b51a819a75ef457404e86d4c (patch)
treed8e31b98f18f7e027ee72a9792248072d93e5852 /src/game/client/components/sounds.hpp
parentb22dd1488cdae53d27215fda051fea9bfc72ac1d (diff)
downloadzcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.tar.gz
zcatch-0511e1152a13ad99b51a819a75ef457404e86d4c.zip
added sound component
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);
+};
+
+