I took a look at your code (I was not able to compile. I think I was using a different imgui block), but wanted to try and implement what you were showing with the ctx->disable();
However, I still get the same failure.
auto device = audio::Device::findDeviceByName("MY DEVICE");
mOutputDeviceNode = ctx->createOutputDeviceNode(device);
mInputDeviceNode = ctx->createInputDeviceNode(device);
.....///SET UP SPECTRAL NODES PER FOUND CHANNEL (0 by the way)
//THIS IS WHERE I CRASH
This code produces this error:
Exception thrown at 0x00007FFA8B3FA388 in Test.exe: Microsoft C++ exception: cinder::audio::msw::WasapiExc at memory location 0x0000000000149AA0.
|fatal | cinder::app::AppBase::executeLaunch Uncaught exception, type: class cinder::audio::msw::WasapiExc, what: Failed to check if format is supported (HRESULT: 80070057, ‘E_INVALIDARG’)
I’m a little optimistic, that surely this must not be so complicated…
Thanks again for helping out.