A tester reports, that his Logitech C920 web cam causes our standalone plugin to quit directly after starting.
We did some debugging:
Whenever he sets the Logitech web cam as the audio input, the JUCE audio settings dialog reports that no sample rates are available.
Apparently the fallback sample rate is 0 in that case.
So in other words: using the Logitech web cam as an input causes the output sample rate to be 0.
And apparently a sample rate of 0 causes the app to quit immediately after starting.
Anyone else seen this?
The problem also appears, when I give the tester a default JUCE standalone plugin (without any of our own code).
I can see that the assert jassert (sampleRate > 0 && blockSize > 0); is hit lots of times, on line 107 of AudioProcessorPlayer::audioDeviceIOCallback.
The tester is on OSX Mojave, running a stand-alone version of our plugin.
We compile with JUCE v6.0.4.
+1 I have also experienced this issue with the same camera when testing an Input/Output library I was writing.
I am pretty sure the issue is exclusive to macOS and occurs in the juce_mac_CoreAudio.cpp class, and is some kind of race condition when acquiring the device info. It might have to do with how the device has 0 outputs and 2 inputs. I found that it would wind up trying to create an aggregate device with the previously used device.
That’s great to hear, looks like we posted about exactly the same time and I didn’t see your message before posting mine. Will also update and retest the repro steps I had set up for this one.