+
+ mAlDevice = alcOpenDevice(0);
+ mAlContext = alcCreateContext(mAlDevice, 0);
+ if (!mAlDevice || !mAlContext)
+ {
+ const char* error = alcGetString(mAlDevice,alcGetError(mAlDevice));
+ logError("error while creating audio context: %s", error);
+ }
+ else
+ {
+ alcMakeContextCurrent(mAlContext);
+ logDebug("opened sound device \"%s\"",
+ alcGetString(mAlDevice, ALC_DEFAULT_DEVICE_SPECIFIER));
+ }
+