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 6bff1a5 commit 7446acdCopy full SHA for 7446acd
Cookbook/Cookbook/CookbookApp.swift
@@ -14,7 +14,10 @@ struct CookbookApp: App {
14
15
// Settings.sampleRate default is 44_100
16
if #available(iOS 18.0, *) {
17
- Settings.sampleRate = 48_000
+ if !ProcessInfo.processInfo.isMacCatalystApp && !ProcessInfo.processInfo.isiOSAppOnMac {
18
+ // iOS 18 app (not on Mac)
19
+ Settings.sampleRate = 48_000
20
+ }
21
}
22
23
try AVAudioSession.sharedInstance().setPreferredIOBufferDuration(Settings.bufferLength.duration)
0 commit comments