Browse Source

Fixed some CoreAudio errors when detecting bit depths

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
2215001d0c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp

+ 3
- 2
modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp View File

@@ -432,8 +432,9 @@ public:
auto newInNames = isInputDevice ? getChannelInfo (true, newInChans) : StringArray();
auto newOutNames = isOutputDevice ? getChannelInfo (false, newOutChans) : StringArray();
auto newBitDepth = jmax (getBitDepthFromDevice (kAudioDevicePropertyScopeInput),
getBitDepthFromDevice (kAudioDevicePropertyScopeOutput));
auto inputBitDepth = isInputDevice ? getBitDepthFromDevice (kAudioDevicePropertyScopeInput) : 0;
auto outputBitDepth = isOutputDevice ? getBitDepthFromDevice (kAudioDevicePropertyScopeOutput) : 0;
auto newBitDepth = jmax (inputBitDepth, outputBitDepth);
{
const ScopedLock sl (callbackLock);


Loading…
Cancel
Save