diff --git a/examples/simple_capture.c b/examples/simple_capture.c index 66da9d6f..5a7c1b95 100644 --- a/examples/simple_capture.c +++ b/examples/simple_capture.c @@ -1,8 +1,4 @@ /* This example simply captures data from your default microphone until you press Enter. The output is saved to the file specified on the command line. */ - -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" - #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" diff --git a/examples/simple_duplex.c b/examples/simple_duplex.c index 7365ee9c..10e7f3ae 100644 --- a/examples/simple_duplex.c +++ b/examples/simple_duplex.c @@ -1,9 +1,6 @@ #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" - #include #ifdef __EMSCRIPTEN__ diff --git a/examples/simple_loopback.c b/examples/simple_loopback.c index 9e4a2d1f..f2d1673e 100644 --- a/examples/simple_loopback.c +++ b/examples/simple_loopback.c @@ -5,10 +5,6 @@ specified on the command line. To use loopback mode you just need to set the device type to ma_device_type_loopback and set the capture device config properties. The output buffer in the callback will be null whereas the input buffer will be valid. */ - -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" - #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" diff --git a/examples/simple_looping.c b/examples/simple_looping.c index 16334953..eed37afb 100644 --- a/examples/simple_looping.c +++ b/examples/simple_looping.c @@ -1,10 +1,3 @@ -#define DR_FLAC_IMPLEMENTATION -#include "../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" /* Enables WAV decoding. */ - #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" diff --git a/examples/simple_mixing.c b/examples/simple_mixing.c index 71055f41..ca021906 100644 --- a/examples/simple_mixing.c +++ b/examples/simple_mixing.c @@ -2,14 +2,6 @@ Usage: simple_mixing [input file 0] [input file 1] ... [input file n] Example: simple_mixing file1.wav file2.flac */ - -#define DR_FLAC_IMPLEMENTATION -#include "../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" /* Enables WAV decoding. */ - #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" diff --git a/examples/simple_playback.c b/examples/simple_playback.c index 16cc68f4..ef1ae187 100644 --- a/examples/simple_playback.c +++ b/examples/simple_playback.c @@ -1,10 +1,3 @@ -#define DR_FLAC_IMPLEMENTATION -#include "../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" /* Enables WAV decoding. */ - #define MINIAUDIO_IMPLEMENTATION #include "../miniaudio.h" diff --git a/research/ma_engine.c b/research/ma_engine.c index 08d1611d..974ffa03 100644 --- a/research/ma_engine.c +++ b/research/ma_engine.c @@ -1,11 +1,3 @@ - -#define DR_FLAC_IMPLEMENTATION -#include "../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" /* Enables WAV decoding. */ - #define STB_VORBIS_HEADER_ONLY #include "../extras/stb_vorbis.c" /* Enables Vorbis decoding. */ diff --git a/research/ma_mixing.c b/research/ma_mixing.c index 8852bee8..a5cb298a 100644 --- a/research/ma_mixing.c +++ b/research/ma_mixing.c @@ -1,11 +1,3 @@ - -#define DR_FLAC_IMPLEMENTATION -#include "../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../extras/dr_wav.h" /* Enables WAV decoding. */ - #define MA_DEBUG_OUTPUT #define MA_IMPLEMENTATION #include "../miniaudio.h" diff --git a/tests/test_common/ma_test_common.c b/tests/test_common/ma_test_common.c index c6b8d7cf..735e1cb6 100644 --- a/tests/test_common/ma_test_common.c +++ b/tests/test_common/ma_test_common.c @@ -1,10 +1,3 @@ -#define DR_FLAC_IMPLEMENTATION -#include "../../extras/dr_flac.h" -#define DR_MP3_IMPLEMENTATION -#include "../../extras/dr_mp3.h" -#define DR_WAV_IMPLEMENTATION -#include "../../extras/dr_wav.h" - /* Make sure we include the Speex resampler so we can test it. */ #define MINIAUDIO_SPEEX_RESAMPLER_IMPLEMENTATION #include "../../extras/speex_resampler/ma_speex_resampler.h" diff --git a/tools/audioconverter/audioconverter.c b/tools/audioconverter/audioconverter.c index 56a021c1..57700e22 100644 --- a/tools/audioconverter/audioconverter.c +++ b/tools/audioconverter/audioconverter.c @@ -14,12 +14,6 @@ find a copy of this text in extras/speex_resampler/README.md in the miniaudio re */ #define _CRT_SECURE_NO_WARNINGS /* For stb_vorbis' usage of fopen() instead of fopen_s(). */ -#define DR_FLAC_IMPLEMENTATION -#include "../../extras/dr_flac.h" /* Enables FLAC decoding. */ -#define DR_MP3_IMPLEMENTATION -#include "../../extras/dr_mp3.h" /* Enables MP3 decoding. */ -#define DR_WAV_IMPLEMENTATION -#include "../../extras/dr_wav.h" /* Enables WAV decoding. */ #define STB_VORBIS_HEADER_ONLY #include "../../extras/stb_vorbis.c" /* Enables Vorbis decoding. */