diff options
| author | raysan5 <raysan5@gmail.com> | 2015-07-29 21:41:19 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-07-29 21:41:19 +0200 |
| commit | f7acee9221bf5f6b8f56b60bb7b27adc80dc0513 (patch) | |
| tree | d789efe98a0a881f4b16a3a0fe1da34a1fee0b07 /src/audio.c | |
| parent | 067b884f395b7b6d4c179cb3d58b0d17a02950ec (diff) | |
| download | raylib-f7acee9221bf5f6b8f56b60bb7b27adc80dc0513.tar.gz raylib-f7acee9221bf5f6b8f56b60bb7b27adc80dc0513.zip | |
Decoupling audio module from raylib
Now audio module can be used as standalone module
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index 9653c091..bebfd088 100644 --- a/src/audio.c +++ b/src/audio.c @@ -8,7 +8,7 @@ * OpenAL Soft - Audio device management lib (http://kcat.strangesoft.net/openal.html) * stb_vorbis - Ogg audio files loading (http://www.nothings.org/stb_vorbis/) * -* Copyright (c) 2014 Ramon Santamaria (Ray San - raysan@raysanweb.com) +* Copyright (c) 2014 Ramon Santamaria (@raysan5) * * This software is provided "as-is", without any express or implied warranty. In no event * will the authors be held liable for any damages arising from the use of this software. @@ -27,7 +27,13 @@ * **********************************************************************************************/ -#include "raylib.h" +//#define AUDIO_STANDALONE // NOTE: To use the audio module as standalone lib, just uncomment this line + +#if defined(AUDIO_STANDALONE) + #include "audio.h" +#else + #include "raylib.h" +#endif #include "AL/al.h" // OpenAL basic header #include "AL/alc.h" // OpenAL context header (like OpenGL, OpenAL requires a context to work) |
