mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Initial work on the MP3 decoder.
This currently uses minimp3, but this may change.
This commit is contained in:
@@ -1,13 +1,25 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
// These are implemented at the bottom of this file.
|
||||
#define STB_VORBIS_HEADER_ONLY
|
||||
#include "../extras/stb_vorbis.c"
|
||||
//#define STB_VORBIS_HEADER_ONLY
|
||||
//#include "../extras/stb_vorbis.c"
|
||||
#include "../extras/dr_flac.h"
|
||||
#include "../extras/dr_wav.h"
|
||||
#include "../extras/jar_mod.h"
|
||||
#include "../extras/jar_xm.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
#define MINIMP3_IMPLEMENTATION
|
||||
#include "../extras/minimp3.h"
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
|
||||
|
||||
#define MAL_IMPLEMENTATION
|
||||
#include "../mini_al.h"
|
||||
|
||||
@@ -254,7 +266,7 @@ end:;
|
||||
#endif
|
||||
#endif
|
||||
#undef STB_VORBIS_HEADER_ONLY
|
||||
#include "../extras/stb_vorbis.c"
|
||||
//#include "../extras/stb_vorbis.c"
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user