diff options
Diffstat (limited to 'src/game/client/components/sounds.h')
| -rw-r--r-- | src/game/client/components/sounds.h | 9 |
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); }; |