From 1a5d70450f1de87224334e550706c67ad0cde6b8 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 13 Apr 2011 20:00:54 +0200 Subject: added "reimplemented menu music by teetow-the-great-teetow" by Choupom --- src/game/client/components/sounds.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/game/client/components/sounds.h') 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); }; -- cgit 1.4.1