We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a19f5 commit 99d8b9bCopy full SHA for 99d8b9b
modules/juce_audio_devices/native/juce_Audio_ios.cpp
@@ -542,7 +542,14 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
542
// On iOS 18 the AVAudioSession sample rate is not always accurate but
543
// probing the sample rate via an AudioQueue seems to work reliably
544
if (@available (ios 18, *))
545
+ {
546
+ // On iOS 26, things seem to work as expected again,
547
+ // so avoid creating an AudioQueue
548
+ if (@available (ios 26, *))
549
+ return session.sampleRate;
550
+
551
return getSampleRateFromAudioQueue().value_or (session.sampleRate);
552
+ }
553
554
return session.sampleRate;
555
}
0 commit comments