diff options
| author | oy <Tom_Adams@web.de> | 2012-01-06 19:38:40 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-06 19:38:40 +0100 |
| commit | b592d7a591f32ecdc2c91a79b76c58f77a2b5fee (patch) | |
| tree | ccde91d0cc06e27f35aca6afdface2d192490817 /src/game/client/components/sounds.h | |
| parent | 6ad6d59b6fbb7a6625ede9898831a3432a7f90a5 (diff) | |
| download | zcatch-b592d7a591f32ecdc2c91a79b76c58f77a2b5fee.tar.gz zcatch-b592d7a591f32ecdc2c91a79b76c58f77a2b5fee.zip | |
cleaned up playing of global sounds
Diffstat (limited to 'src/game/client/components/sounds.h')
| -rw-r--r-- | src/game/client/components/sounds.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); }; |