Change default threading model for COM objects

It shouldn't matter much but it could avoid some conflicts with other libraries in the future (like `tinyfiledialogs`).
This commit is contained in:
Ray 2023-03-05 00:09:56 +01:00
parent 1611cd54e7
commit 5492f52adc

View File

@ -168,6 +168,10 @@ typedef struct tagBITMAPINFOHEADER {
#define MA_NO_WAV
#define MA_NO_FLAC
#define MA_NO_MP3
// Threading model: Default: [0] COINIT_MULTITHREADED: COM calls objects on any thread (free threading)
#define MA_COINIT_VALUE 2 // [2] COINIT_APARTMENTTHREADED: Each object has its own thread (apartment model)
#define MINIAUDIO_IMPLEMENTATION
//#define MA_DEBUG_OUTPUT
#include "external/miniaudio.h" // Audio device initialization and management