Skip to content

Commit

Permalink
Fix[output]: low audio volume after fixing microphone
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Jul 18, 2024
1 parent 84c63b5 commit fcc7efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Natives/SurfaceViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ - (void)updateAudioSettings {
} else {
options = AVAudioSessionCategoryOptionMixWithOthers;
}
[AVAudioSession.sharedInstance setCategory:category withOptions:options error:&sessionError];
[AVAudioSession.sharedInstance setActive:YES error:&sessionError];
AVAudioSession *session = AVAudioSession.sharedInstance;
[session setCategory:category withOptions:options error:&sessionError];
[session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error: nil];
[session setActive:YES error:&sessionError];
}

- (void)updateJetsamControl {
Expand Down

0 comments on commit fcc7efe

Please sign in to comment.