19#elif defined(__APPLE__)
20 #define OPENAL_DEPRECATED
21 #include <OpenAL/al.h>
22 #include <OpenAL/alc.h>
40 return "invalid name";
42 return "invalid enum";
43 case AL_INVALID_VALUE:
44 return "invalid value";
45 case AL_INVALID_OPERATION:
46 return "invalid operation";
47 case AL_OUT_OF_MEMORY:
48 return "out of memory";
50 return "<unknown OpenAL error>";
56 ALenum err = alGetError();
57 if (err == AL_NO_ERROR)
71 return v3f(-v.X, v.Y, v.Z);
93 void reset(ALuint buf)
noexcept;
#define DISABLE_CLASS_COPY(C)
Definition basic_macros.h:26
core::vector3df v3f
Definition irr_v3d.h:11
thread_local LogStream warningstream
Definition al_extensions.cpp:11
const char * getAlErrorString(ALenum err) noexcept
Definition al_helpers.h:34
ALenum warn_if_al_error(const char *desc)
Definition al_helpers.h:54
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:69
RAII wrapper for openal sound buffers.
Definition al_helpers.h:78
ALuint release() noexcept
Definition al_helpers.h:91
RAIIALSoundBuffer() noexcept=default
static RAIIALSoundBuffer generate() noexcept
Definition al_helpers.cpp:34
~RAIIALSoundBuffer() noexcept
Definition al_helpers.h:82
ALuint get() noexcept
Definition al_helpers.h:89
ALuint m_buffer
Definition al_helpers.h:103
void reset(ALuint buf) noexcept
Definition al_helpers.cpp:24
RAIIALSoundBuffer & operator=(RAIIALSoundBuffer &&other) noexcept
Definition al_helpers.cpp:17