// Jon said: "Static linking for runtime is actually the default (even if there is a dll). no_dll means you can't call it at compile-time because a dll is necessary for the compiler to load."
// The lib that is created with the DLL is
// just a stub lib. If you want static linking without any need for a DLL then
// build an actual static lib and use #library,no_static_library
// @incomplete I'm probably doing something wrong below, so review the above and play around with it.
COMPILE :: true; // Enable to compile the miniaudio library from source before generating bindings.
COMPILE_DEBUG :: false; // Compile a debug or release version of miniaudio
MAKE_DYNAMIC_LIB :: false; // Will make a static lib if false.
// There are a bunch of defines that you can set to configure the library to
// your liking. Check out heading "2.7. Build Options" in the miniaudio source
// file for the full list.
//
// We're using the default configuration, with the option to enable debug
// logging and to specify which decoders you want to support. You can easily
// add your own defines by including them in the extra array in generate_bindings().
ENABLE_MINIAUDIO_DEBUG_LOGS :: false;
MINIAUDIO_SUPPORTED_DECODERS: Libs : .WAV | .FLAC | .MP3; // @consider making this a metaprogram/command line arg. Can then use this as a git submodule in a project and a script/build file can generate bindings for what the project requires.