MCPcopy Create free account
hub / github.com/LabSound/LabSound / RtApiDs

Method RtApiDs

src/backends/RtAudio/RtAudio.cpp:6109–6117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6107};
6108
6109RtApiDs ::RtApiDs()
6110{
6111 // Dsound will run both-threaded. If CoInitialize fails, then just
6112 // accept whatever the mainline chose for a threading model.
6113 coInitialized_ = false;
6114 //HRESULT hr = CoInitialize( NULL ); modified by LabSound per issue 121
6115 HRESULT hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
6116 if (!FAILED(hr)) coInitialized_ = true;
6117}
6118
6119RtApiDs ::~RtApiDs()
6120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected