summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/channel.h
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2014-01-18 03:42:07 +0100
committererihel <erihel@gmail.com>2014-01-18 03:42:07 +0100
commitc5ae2610b57e54216ee55214bd74368c9c7e22ee (patch)
tree25dae6ea13879af464ffbb807c6d93eff552c66e /src/sound/oalsound/channel.h
parent652dc6081df8dc73bc9f57c031420e498be71451 (diff)
downloadcolobot-c5ae2610b57e54216ee55214bd74368c9c7e22ee.tar.gz
colobot-c5ae2610b57e54216ee55214bd74368c9c7e22ee.tar.bz2
colobot-c5ae2610b57e54216ee55214bd74368c9c7e22ee.zip
Minor changes to sound support.
* changed channel limit from 64 to 2048 that will decrease if error is found while trying to play sound * added id to each channel to avoid collisions when more than 1 object tries to modify a sound * minor formatting changes
Diffstat (limited to 'src/sound/oalsound/channel.h')
-rw-r--r--src/sound/oalsound/channel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sound/oalsound/channel.h b/src/sound/oalsound/channel.h
index f973198..1d988c9 100644
--- a/src/sound/oalsound/channel.h
+++ b/src/sound/oalsound/channel.h
@@ -97,11 +97,15 @@ public:
void Mute(bool);
bool IsMuted();
+ void Reset();
+ int GetId();
+
private:
Buffer *m_buffer;
ALuint m_source;
int m_priority;
+ int m_id;
float m_startAmplitude;
float m_startFrequency;
float m_changeFrequency;