Handling closed audio device while application is running


#1

I’m using LoopBack to simulate audio input to an app. However, if I close LoopBack / disable the device while the app is running, it hits the assertion at the top AudioProcessorPlayer::audioDeviceIOCallback, and in Release mode will cause a crash. I noticed that Ableton Live does not exhibit this behaviour - it simply sets the current device to “No device”. Is there a way to get a JUCE application to handle the situation gracefully like Live does?


#2

This looks like a JUCE bug. On which OS is this? What are you using to get the LoopBack device?


#3

This is on OS X. I’m using AudioDeviceSetup / AudioDeviceManager if thats what you mean?


#4

How are you getting a loop back device?


#5

I’m using https://rogueamoeba.com/loopback/


#6

OK I think this should be fixed on develop now.


#7

Happy to report this is indeed fixed, thanks