Skip to content

Commit

Permalink
client: media: fix audio session default options
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Oct 15, 2024
1 parent 8ed2935 commit f1dcf77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcclient/rpcclient/darwin/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def set_mode(self, mode: AVAudioSessionMode):
def set_category(self, category: AVAudioSessionCategory,
mode: AVAudioSessionMode = AVAudioSessionMode.Default,
route_sharing_policy: AVAudioSessionRouteSharingPolicy = AVAudioSessionRouteSharingPolicy.Default,
options: AVAudioSessionCategoryOptions = 0):
options: AVAudioSessionCategoryOptions = AVAudioSessionCategoryOptions.DefaultToSpeaker) -> None:
category = self._client.symbols[category.value][0]
mode = self._client.symbols[mode.value][0]
self._session.objc_call('setCategory:mode:routeSharingPolicy:options:error:', category, mode,
Expand Down

0 comments on commit f1dcf77

Please sign in to comment.