summaryrefslogtreecommitdiffhomepage
path: root/src/audio.c
diff options
context:
space:
mode:
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