You've already forked libopenshot-audio
mirror of
https://github.com/OpenShot/libopenshot-audio.git
synced 2026-03-02 08:54:01 -08:00
Apply JUCE input device fix
This commit is contained in:
@@ -336,10 +336,10 @@ void AudioDeviceManager::insertDefaultDeviceNames (AudioDeviceSetup& setup) cons
|
||||
{
|
||||
if (auto* type = getCurrentDeviceTypeObject())
|
||||
{
|
||||
if (setup.outputDeviceName.isEmpty())
|
||||
if (numOutputChansNeeded > 0 && setup.outputDeviceName.isEmpty())
|
||||
setup.outputDeviceName = type->getDeviceNames (false) [type->getDefaultDeviceIndex (false)];
|
||||
|
||||
if (setup.inputDeviceName.isEmpty())
|
||||
if (numInputChansNeeded > 0 && setup.inputDeviceName.isEmpty())
|
||||
setup.inputDeviceName = type->getDeviceNames (true) [type->getDefaultDeviceIndex (true)];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user