Skip to content

Commit

Permalink
Change audio session mode to spoken audio
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Jun 1, 2020
1 parent a6a2cc3 commit 8ad6af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sodes/SodesAudio/PlaybackController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public class PlaybackController: NSObject {

if #available(iOS 11.0, *) {
do {
try audioSession.setCategory(.playback, mode: .default, policy: .longForm)
try audioSession.setCategory(.playback, mode: .spokenAudio, policy: .longForm)
try audioSession.setActive(true)
}
catch {
Expand Down

0 comments on commit 8ad6af3

Please sign in to comment.