Skip to content

Commit 954ff2a

Browse files
authored
fix setSpeakerOn has no effect
1 parent ea12c71 commit 954ff2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/darwin/Classes/AudioUtils.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ + (void)ensureAudioSessionWithRecording:(BOOL)recording {
2626
} else if (!recording || (session.category == AVAudioSessionCategoryAmbient
2727
|| session.category == AVAudioSessionCategorySoloAmbient)) {
2828
config.category = AVAudioSessionCategoryPlayback;
29+
config.categoryOptions = 0;
2930
config.mode = AVAudioSessionModeDefault;
3031

3132
// upgrade from ambient if needed

0 commit comments

Comments
 (0)