Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
OpenALSoundSource.h
Go to the documentation of this file.
1#ifndef ULT_OPENAL_SOUND_SOURCE_H_INCLUDED
2#define ULT_OPENAL_SOUND_SOURCE_H_INCLUDED
3
4namespace Ult
5{
6
8
14{
15public:
24
28 bool BindSourceBuffer(const OpenALSoundBuffer& buff);
29
33 void SetSoundPosition(const float x, const float y, const float z);
37 void SetSoundVelocity(const float x, const float y, const float z);
41 void SetLooping(const bool enable);
42
46 void Cleanup();
47
51 unsigned int GetSource() const { return mSoundSource; }
52private:
53 unsigned int mSoundSource;
54};
55
56} // namespace Ult
57
58#endif // ULT_OPENAL_SOUND_SOURCE_H_INCLUDED
59
Definition OpenALSoundBuffer.h:16
unsigned int GetSource() const
Definition OpenALSoundSource.h:51
~OpenALSoundSource()
Definition OpenALSoundSource.cpp:12
void Cleanup()
Definition OpenALSoundSource.cpp:44
void SetLooping(const bool enable)
Definition OpenALSoundSource.cpp:39
void SetSoundVelocity(const float x, const float y, const float z)
Definition OpenALSoundSource.cpp:34
void SetSoundPosition(const float x, const float y, const float z)
Definition OpenALSoundSource.cpp:29
bool BindSourceBuffer(const OpenALSoundBuffer &buff)
Definition OpenALSoundSource.cpp:17
OpenALSoundSource()
Definition OpenALSoundSource.cpp:8
Definition Archive.h:13