diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-02 14:39:08 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-02-03 13:10:27 +0100 |
commit | 7ff899bd22f20c53d067529140aeb466612e8bbc (patch) | |
tree | cc53cf98a1ad746e5ff9c090a6193d8ceb06bc90 /src/audio/oal/channel.h | |
parent | MusicManager fixes (diff) | |
download | re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar.gz re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar.bz2 re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar.lz re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar.xz re3-7ff899bd22f20c53d067529140aeb466612e8bbc.tar.zst re3-7ff899bd22f20c53d067529140aeb466612e8bbc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/oal/channel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/oal/channel.h b/src/audio/oal/channel.h index 81817a32..b081be25 100644 --- a/src/audio/oal/channel.h +++ b/src/audio/oal/channel.h @@ -19,7 +19,10 @@ class CChannel float Distances[2]; int32 LoopCount; ALint LoopPoints[2]; + ALint LastProcessedOffset; public: + static int32 channelsThatNeedService; + static void InitChannels(); static void DestroyChannels(); @@ -37,7 +40,7 @@ public: void SetVolume(int32 vol); void SetSampleData(void *_data, size_t _DataSize, int32 freq); void SetCurrentFreq(uint32 freq); - void SetLoopCount(int32 loopCount); // fake + void SetLoopCount(int32 count); void SetLoopPoints(ALint start, ALint end); void SetPosition(float x, float y, float z); void SetDistances(float max, float min); @@ -45,6 +48,7 @@ public: void ClearBuffer(); void SetReverbMix(ALuint slot, float mix); void UpdateReverb(ALuint slot); + bool Update(); }; #endif
\ No newline at end of file |