Browse Source

CoreAudio: Ensure devices are restarted correctly after changing sample rate

f1b6bbc921 erroneously replaced

    callback = newCallback;
    previousCallback = callback;

with

    previousCallback = std::exchange (callback, newCallback);

It looks like previousCallback is intended to hold the last active
callback, so the previous version was correct after all.
v6.1.6
reuk 3 years ago
parent
commit
1616c0ee26
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp

+ 1
- 1
modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp View File

@@ -1555,7 +1555,7 @@ public:
newCallback->audioDeviceAboutToStart (this);
const ScopedLock sl (callbackLock);
previousCallback = std::exchange (callback, newCallback);
previousCallback = callback = newCallback;
}
}


Loading…
Cancel
Save