summaryrefslogtreecommitdiffstats
path: root/src/audio/oal/stream.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-04 21:46:50 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-04 21:48:43 +0100
commit150f5302b735331780815194fb7d397a477fcb19 (patch)
treedd731ae44e542b91090009bddff4dc17e9f4cdcc /src/audio/oal/stream.h
parentFix CEntity::UpdateRwFrame (diff)
downloadre3-150f5302b735331780815194fb7d397a477fcb19.tar
re3-150f5302b735331780815194fb7d397a477fcb19.tar.gz
re3-150f5302b735331780815194fb7d397a477fcb19.tar.bz2
re3-150f5302b735331780815194fb7d397a477fcb19.tar.lz
re3-150f5302b735331780815194fb7d397a477fcb19.tar.xz
re3-150f5302b735331780815194fb7d397a477fcb19.tar.zst
re3-150f5302b735331780815194fb7d397a477fcb19.zip
Diffstat (limited to 'src/audio/oal/stream.h')
-rw-r--r--src/audio/oal/stream.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/oal/stream.h b/src/audio/oal/stream.h
index 2476abcc..326ce6a1 100644
--- a/src/audio/oal/stream.h
+++ b/src/audio/oal/stream.h
@@ -3,7 +3,7 @@
#ifdef AUDIO_OAL
#include <AL/al.h>
-#define NUM_STREAMBUFFERS 4
+#define NUM_STREAMBUFFERS 8
class IDecoder
{
@@ -57,7 +57,7 @@ public:
class CStream
{
char m_aFilename[128];
- ALuint &m_alSource;
+ ALuint *m_pAlSources;
ALuint (&m_alBuffers)[NUM_STREAMBUFFERS];
bool m_bPaused;
@@ -73,20 +73,20 @@ class CStream
IDecoder *m_pSoundFile;
bool HasSource();
- void SetPosition(float x, float y, float z);
+ void SetPosition(int i, float x, float y, float z);
void SetPitch(float pitch);
void SetGain(float gain);
void Pause();
void SetPlay(bool state);
- bool FillBuffer(ALuint alBuffer);
+ bool FillBuffer(ALuint *alBuffer);
int32 FillBuffers();
void ClearBuffers();
public:
static void Initialise();
static void Terminate();
- CStream(char *filename, ALuint &source, ALuint (&buffers)[NUM_STREAMBUFFERS]);
+ CStream(char *filename, ALuint *sources, ALuint (&buffers)[NUM_STREAMBUFFERS]);
~CStream();
void Delete();