Skip to content

Commit fd5eacf

Browse files
Hounds
1 parent 87109d4 commit fd5eacf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Cookbook/Cookbook/CookbookApp.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ struct CookbookApp: App {
1111
#if os(iOS)
1212
do {
1313
Settings.bufferLength = .short
14-
14+
1515
let deviceSampleRate = AVAudioSession.sharedInstance().sampleRate
1616
if deviceSampleRate > Settings.sampleRate {
1717
// Update sampleRate to 48_000. Default is 44_100.
1818
Settings.sampleRate = deviceSampleRate
1919
}
20-
21-
20+
2221
try AVAudioSession.sharedInstance().setPreferredIOBufferDuration(Settings.bufferLength.duration)
2322
try AVAudioSession.sharedInstance().setCategory(.playAndRecord,
2423
options: [.defaultToSpeaker, .mixWithOthers, .allowBluetoothA2DP])

0 commit comments

Comments
 (0)