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:
parent
1611cd54e7
commit
5492f52adc
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ typedef struct tagBITMAPINFOHEADER {
|
||||||
#define MA_NO_WAV
|
#define MA_NO_WAV
|
||||||
#define MA_NO_FLAC
|
#define MA_NO_FLAC
|
||||||
#define MA_NO_MP3
|
#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 MINIAUDIO_IMPLEMENTATION
|
||||||
//#define MA_DEBUG_OUTPUT
|
//#define MA_DEBUG_OUTPUT
|
||||||
#include "external/miniaudio.h" // Audio device initialization and management
|
#include "external/miniaudio.h" // Audio device initialization and management
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue