35#elif defined(__APPLE__)
36 #define OPENAL_DEPRECATED
37 #include <OpenAL/al.h>
38 #include <OpenAL/alc.h>
56 return "invalid name";
58 return "invalid enum";
59 case AL_INVALID_VALUE:
60 return "invalid value";
61 case AL_INVALID_OPERATION:
62 return "invalid operation";
63 case AL_OUT_OF_MEMORY:
64 return "out of memory";
66 return "<unknown OpenAL error>";
72 ALenum err = alGetError();
73 if (err == AL_NO_ERROR)
87 return v3f(-v.X, v.Y, v.Z);
109 void reset(ALuint buf)
noexcept;
#define DISABLE_CLASS_COPY(C)
Definition basic_macros.h:35
core::vector3df v3f
Definition irr_v3d.h:26
thread_local LogStream warningstream
Definition al_extensions.cpp:26
const char * getAlErrorString(ALenum err) noexcept
Definition al_helpers.h:50
ALenum warn_if_al_error(const char *desc)
Definition al_helpers.h:70
v3f swap_handedness(v3f v) noexcept
Transforms vectors from a left-handed coordinate system to a right-handed one and vice-versa.
Definition al_helpers.h:85
RAII wrapper for openal sound buffers.
Definition al_helpers.h:94
ALuint release() noexcept
Definition al_helpers.h:107
RAIIALSoundBuffer() noexcept=default
static RAIIALSoundBuffer generate() noexcept
Definition al_helpers.cpp:50
~RAIIALSoundBuffer() noexcept
Definition al_helpers.h:98
ALuint get() noexcept
Definition al_helpers.h:105
ALuint m_buffer
Definition al_helpers.h:119
void reset(ALuint buf) noexcept
Definition al_helpers.cpp:40
RAIIALSoundBuffer & operator=(RAIIALSoundBuffer &&other) noexcept
Definition al_helpers.cpp:33