29 #ifndef NOMLIB_OPENAL_HEADERS
30 #define NOMLIB_OPENAL_HEADERS
36 #include "nomlib/config.hpp"
37 #include "nomlib/system/clock.hpp"
39 #if defined NOM_PLATFORM_OSX
40 #include <OpenAL/al.h>
41 #include <OpenAL/alc.h>
42 #else // Assumes configuration to be alike (Ubuntu) Linux & Windows platforms
48 const nom::uint32 BUFFER_SIZE = 4096;
49 const nom::uint32 NUM_SOURCES = 16;
51 const float MIN_VOLUME = 0.0;
52 const float MAX_VOLUME = 100.0;
55 #define AL_CHECK_ERR(Function) \
56 ( (Function ), nom::priv::al_err ( __FILE__, __LINE__ ) )
58 #define AL_CHECK_ERR(Function) ( Function )
64 void al_err (
const std::string& file, uint32 line );
70 #endif // NOMLIB_OPENAL_HEADERS defined