From b592d7a591f32ecdc2c91a79b76c58f77a2b5fee Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 6 Jan 2012 19:38:40 +0100 Subject: cleaned up playing of global sounds --- src/game/client/components/sounds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 ab9cc8e6..9d647398 100644 --- a/src/game/client/components/sounds.h +++ b/src/game/client/components/sounds.h @@ -19,6 +19,8 @@ class CSounds : public CComponent int64 m_QueueWaitTime; class CJob m_SoundJob; bool m_WaitForSoundJob; + + int GetSampleId(int SetId); public: // sound channels @@ -37,7 +39,8 @@ public: void ClearQueue(); void Enqueue(int Channel, int SetId); - void Play(int Channel, int SetId, float Vol, vec2 Pos); + void Play(int Channel, int SetId, float Vol); + void PlayAt(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