about summary refs log tree commit diff
path: root/src/game/client/components/sounds.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-04-13 20:00:54 +0200
committeroy <Tom_Adams@web.de>2011-04-13 20:00:54 +0200
commit1a5d70450f1de87224334e550706c67ad0cde6b8 (patch)
tree2b39cfbbb5b87c1fcdb6b60dfb780f171e193b60 /src/game/client/components/sounds.h
parent2179ae011302ecc48a2289a88cc865cdcb4d9f72 (diff)
downloadzcatch-1a5d70450f1de87224334e550706c67ad0cde6b8.tar.gz
zcatch-1a5d70450f1de87224334e550706c67ad0cde6b8.zip
added "reimplemented menu music by teetow-the-great-teetow" by Choupom
Diffstat (limited to 'src/game/client/components/sounds.h')
-rw-r--r--src/game/client/components/sounds.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/client/components/sounds.h b/src/game/client/components/sounds.h
index 0e782442..ca8cfd77 100644
--- a/src/game/client/components/sounds.h
+++ b/src/game/client/components/sounds.h
@@ -10,7 +10,11 @@ class CSounds : public CComponent
 	{
 		QUEUE_SIZE = 32,
 	};
-	int m_aQueue[QUEUE_SIZE];
+	struct QueueEntry
+	{
+		int m_Channel;
+		int m_SetId;
+	} m_aQueue[QUEUE_SIZE];
 	int m_QueuePos;
 	int64 m_QueueWaitTime;
 	class CJob m_SoundJob;
@@ -31,9 +35,10 @@ public:
 	virtual void OnRender();
 	
 	void ClearQueue();
-	void Enqueue(int SetId);
+	void Enqueue(int Channel, int SetId);
 	void Play(int Channel, int SetId, float Vol, vec2 Pos);
 	void PlayAndRecord(int Channel, int SetId, float Vol, vec2 Pos);
+	void Stop(int SetId);
 };