summaryrefslogtreecommitdiffstats
path: root/src/audio/oal/channel.h
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-02 14:39:08 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-02 20:30:13 +0100
commit713562685a89578ae5e4008f0a283c39175429fc (patch)
treee530e0fd93734c72825a215f5fe1b5e569416757 /src/audio/oal/channel.h
parentno advanced script log when log level is 0 (diff)
downloadre3-713562685a89578ae5e4008f0a283c39175429fc.tar
re3-713562685a89578ae5e4008f0a283c39175429fc.tar.gz
re3-713562685a89578ae5e4008f0a283c39175429fc.tar.bz2
re3-713562685a89578ae5e4008f0a283c39175429fc.tar.lz
re3-713562685a89578ae5e4008f0a283c39175429fc.tar.xz
re3-713562685a89578ae5e4008f0a283c39175429fc.tar.zst
re3-713562685a89578ae5e4008f0a283c39175429fc.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