diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-04 19:11:04 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-04 19:11:04 +0100 |
commit | 7adac511523ae173ef018c9ca9d20778b4e6abc3 (patch) | |
tree | 919a6ee839d38b49aab5aca8afb05560f436adcc /src/audio/oal/stream.h | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar.gz re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar.bz2 re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar.lz re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar.xz re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.tar.zst re3-7adac511523ae173ef018c9ca9d20778b4e6abc3.zip |
Diffstat (limited to 'src/audio/oal/stream.h')
-rw-r--r-- | src/audio/oal/stream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio/oal/stream.h b/src/audio/oal/stream.h index 2476abcc..befcd0ab 100644 --- a/src/audio/oal/stream.h +++ b/src/audio/oal/stream.h @@ -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(); |