Replies: 2 comments 8 replies
-
Moving the Is there a way to test whether COM has been initialized already? @chirs241097 Do you have any other idea on this? |
Beta Was this translation helpful? Give feedback.
-
Well, I saw the latest commit already resolved the issue. And I skimmed through the changes, they do make a lot of sense. (Sorry for the late response. Had to take a couple of weeks off from github for personal reasons.) |
Beta Was this translation helpful? Give feedback.
-
The wasapi driver included in fluidsynth 2.2.0 requests MTA COM thread initialization in the running thread with
CoInitializeEx(NULL, COINIT_MULTITHREADED)
, which may fail if the thread has been initialized already in STA model:The error code 0x80010106 means RPC_E_CHANGED_MODE which is defined in WinError.h:
See also this QSynth issue.
It is understandable that the drivers require some special threading conditions. It already happens with the realtime priority of the Unix drivers, but ...
Please, can fluidsynth initialize the COM library in the context of the synthesis thread instead of the caller's?
Beta Was this translation helpful? Give feedback.
All reactions