summaryrefslogtreecommitdiffstats
path: root/src/audio/oal/channel.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2021-02-02 20:40:32 +0100
committerGitHub <noreply@github.com>2021-02-02 20:40:32 +0100
commit2ea365e5da8c0d1919374fdfd2a02932c2a308c8 (patch)
treee530e0fd93734c72825a215f5fe1b5e569416757 /src/audio/oal/channel.h
parentno advanced script log when log level is 0 (diff)
parentOAL Loops, fixes (diff)
downloadre3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar.gz
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar.bz2
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar.lz
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar.xz
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.tar.zst
re3-2ea365e5da8c0d1919374fdfd2a02932c2a308c8.zip
Diffstat (limited to 'src/audio/oal/channel.h')
-rw-r--r--src/audio/oal/channel.h6
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