Add support for disabling the threading API.

This is useful for those only using miniaudio for data conversion,
decoding and/or encoding.

Public issue https://github.com/dr-soft/miniaudio/issues/171
This commit is contained in:
David Reid
2020-06-25 15:06:57 +10:00
parent 83298a44d7
commit 1dc176df2b
2 changed files with 27 additions and 5 deletions
+1
View File
@@ -24,6 +24,7 @@ find a copy of this text in extras/speex_resampler/README.md in the miniaudio re
#endif
#define MA_NO_DEVICE_IO
#define MA_NO_THREADING
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"