Skip to content

Commit

Permalink
Fix volume being too low in "Always On" audio mode. Fixes #667, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
LIJI32 committed Nov 8, 2024
1 parent 2dfde86 commit 41af62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOS/GBViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ - (void)initGameBoy
} forKey:@"GBRewindLength"];
[self addDefaultObserver:^(id newValue) {
[[AVAudioSession sharedInstance] setCategory:[newValue isEqual:@"on"]? AVAudioSessionCategoryPlayback : AVAudioSessionCategorySoloAmbient
mode:AVAudioSessionModeMeasurement // Reduces latency on BT
mode:AVAudioSessionModeDefault
routeSharingPolicy:AVAudioSessionRouteSharingPolicyDefault
options:AVAudioSessionCategoryOptionAllowBluetoothA2DP | AVAudioSessionCategoryOptionAllowAirPlay
options:0
error:nil];
} forKey:@"GBAudioMode"];
}
Expand Down

0 comments on commit 41af62d

Please sign in to comment.