22 #ifndef FIFE_FIFE_OPENAL_H
23 #define FIFE_FIFE_OPENAL_H
29 #if defined( __unix__ )
41 #if defined( __APPLE_CC__ )
55 #define CHECK_OPENAL_LOG(logger, level, msg) if (AL_NO_ERROR != alGetError()) { logger.log(level, msg);}
57 #define CHECK_OPENAL_LOG_DETAIL(logger, level, msg) {ALenum error; error = alGetError(); if (AL_NO_ERROR != error) { logger.log(level, LMsg() << msg << ", Error#: " << error);}}
61 #define CHECK_OPENAL_LOG(logger, level, msg)
62 #define CHECK_OPENAL_LOG_DETAIL(logger, level, msg)
66 #define CHECK_OPENAL_EXCEPTION(msg) if (AL_NO_ERROR != alGetError()) { throw Exception(msg); }