Skip to content

Commit

Permalink
change AVAudioSession category (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
entaku0818 committed Sep 5, 2022
1 parent e407d7e commit e40b0f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private actor AudioRecorder {
recorder.wrappedValue.stop()
}

try AVAudioSession.sharedInstance().setCategory(.record, mode: .default)
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .default, options: .defaultToSpeaker)
try AVAudioSession.sharedInstance().setActive(true)
self.recorder?.record()
} catch {
Expand Down

0 comments on commit e40b0f3

Please sign in to comment.