Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
al_common.hpp
1 //////////////////////////////
2 //
3 // File: lxs/audio/al_common.hpp
4 // Author: Maciej Kaminski
5 // E-mail: maciej.a.kaminski@gmail.com
6 // Website: maciejkaminski.pl
7 //
8 // File creation date: Nov 2 2012
9 // This file is part of Project Labyrinth
10 // This file is going to be released under terms of GNU GPL in near future
11 //
12 //////////////////////////////
13 
14 #ifndef __AL_COMMON
15 #define __AL_COMMON
16 #include "helper/openal.hpp"
17 #define AL_CHECK(...) \
18  do { \
19  ALint err;\
20  if ((err = alGetError()) != AL_NO_ERROR) { \
21  LxS::System::Log::Warning("OpenAL error: %x at %s(%i)", err, __FILE__, __LINE__); \
22  } \
23  } while (0)
24 
25 // exit(1);
26 #endif