summaryrefslogtreecommitdiffhomepage
path: root/src/audio.c
diff options
context:
space:
mode:
authorRay San <[email protected]>2018-05-04 16:59:48 +0200
committerRay San <[email protected]>2018-05-04 16:59:48 +0200
commitec33e7d705e301eb2b74a841e823907295caa37a (patch)
tree7726a0d89a862b96cc91ec8a1ba18d07cf022c79 /src/audio.c
parent6045062a05a0cc5bd654ad2c2e7d88f94579cd73 (diff)
downloadraylib-ec33e7d705e301eb2b74a841e823907295caa37a.tar.gz
raylib-ec33e7d705e301eb2b74a841e823907295caa37a.zip
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index 3ee1fe81..1d42e52b 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -24,6 +24,7 @@
* #define SUPPORT_FILEFORMAT_XM
* #define SUPPORT_FILEFORMAT_MOD
* #define SUPPORT_FILEFORMAT_FLAC
+* #define SUPPORT_FILEFORMAT_MP3
* Selected desired fileformats to be supported for loading. Some of those formats are
* supported by default, to remove support, just comment unrequired #define in this module
*
@@ -127,6 +128,11 @@
#include "external/dr_flac.h" // FLAC loading functions
#endif
+#if defined(SUPPORT_FILEFORMAT_MP3)
+ #define DR_MP3_IMPLEMENTATION
+ #include "external/dr_mp3.h" // MP3 loading functions
+#endif
+
#ifdef _MSC_VER
#undef bool
#endif