Skip to content

Commit 1b2cf4a

Browse files
Only change default samplerate on iOS and iPad
1 parent 8578658 commit 1b2cf4a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Cookbook/Cookbook/CookbookApp.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ struct CookbookApp: App {
1919
Settings.sampleRate = 48_000
2020
}
2121
}
22-
if #available(macOS 15.0, *) {
23-
// Set samplerRate for macOS 15 and newer (reverted back to 44_100)
24-
Settings.sampleRate = 44_100
25-
}
2622

2723
try AVAudioSession.sharedInstance().setPreferredIOBufferDuration(Settings.bufferLength.duration)
2824
try AVAudioSession.sharedInstance().setCategory(.playAndRecord,

0 commit comments

Comments
 (0)