-
Notifications
You must be signed in to change notification settings - Fork 10
音声ソフトミュート/ハードミュート機能追加 #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
!haiku レビューして |
This comment was marked as resolved.
This comment was marked as resolved.
|
!haiku 指摘箇所を修正したので再度レビューして |
This comment was marked as resolved.
This comment was marked as resolved.
|
!haiku 修正箇所をレビューして |
This comment was marked as resolved.
This comment was marked as resolved.
|
!sonnet haikuのレビュー内容を踏まえてクロスレビューして。また haiku 側でチェックしていない箇所もチェックして |
This comment was marked as resolved.
This comment was marked as resolved.
|
!sonnet 指摘箇所を修正したので再レビューして |
This comment was marked as resolved.
This comment was marked as resolved.
Sora/AudioDeviceModuleWrapper.swift
Outdated
| import WebRTC | ||
|
|
||
| /// RTCAudioDeviceModule の録音ポーズ/再開をラップするクラス | ||
| public final class AudioDeviceModuleWrapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
特に公開する必要がないなら public じゃなくて internal (アクセス修飾子をつけない) で良さそうだと思いました
Sora/MediaChannel.swift
Outdated
| /// MediaChannel の接続中にマイクをソフトミュート有効化 / 無効化します | ||
| /// - Parameter mute: `true` で有効化、`false` で無効化 | ||
| /// - Returns: 成功した場合は `true`、接続状態などの理由で処理しなかった場合は `false` | ||
| public func setAudioSoftMute(_ mute: Bool) -> Bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
成否を表す値を Bool 型で返すかという部分でちょっと議論の余地はありそうだなと今更思いました(ドキュメント時点で気づけばよかった)。
例えば DataChannel でメッセージを送信する sendMessage は Error? を返すように実装されてます。
https://github.com/shiguredo/sora-ios-sdk/blob/develop/Sora/MediaChannel.swift#L498
Error? を返すほうが統一感がありそうだし、Error? 型にするでもありだなと思いました。
Error? のメリットとしては失敗理由を Error に乗せることができるってとこです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
仮に Error? に直すとしたら、canSwitchAudioMute なども Error? にする必要はありそうですね 📝
|
!haiku 変更した内容についてレビューして |
|
Claude finished @t-miya's task in 25s —— View job コードレビュー以下の内容について指摘します。優先順位が高い順に記載しています。 1. [重大な論理エラー]
|
|
!haiku 修正したので再度レビューして |
No description provided.