-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(frontend): 通知音がほぼ同時に鳴った場合は再生をブロックするように(音割れ防止) #12433
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #12433 +/- ##
===========================================
- Coverage 78.69% 78.55% -0.14%
===========================================
Files 178 177 -1
Lines 23605 23486 -119
Branches 496 496
===========================================
- Hits 18576 18450 -126
- Misses 5029 5036 +7 ☔ View full report in Codecov by Sentry. |
同時鳴動のしきい値は25msとかなりシビアにしてあるので、重複の通知音もちゃんと鳴ります |
👍 |
if (sound.type == null || !canPlay) return; | ||
|
||
canPlay = false; | ||
playFile(sound.type, sound.volume).then(() => { |
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.
playFileがエラーしたときに音が一切鳴らなくなりそうで若干不安な気がしますが大丈夫そうですかね
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.
ほんまや
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.
@anatawa12 1dd7916単体でPRとか立ててもらえます…?
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.
気づくの遅れました。わかりました。
* (fix) 通知音がダブって音割れしないように * Update Changelog
* chore: 音声が一切鳴らなくなる可能性を軽減 #12433 (comment) * chore: IIFEではなくPromise.prototype.finallyを使用するように
* chore: 音声が一切鳴らなくなる可能性を軽減 misskey-dev#12433 (comment) * chore: IIFEではなくPromise.prototype.finallyを使用するように
* (fix) 通知音がダブって音割れしないように * Update Changelog
* chore: 音声が一切鳴らなくなる可能性を軽減 misskey-dev#12433 (comment) * chore: IIFEではなくPromise.prototype.finallyを使用するように
What
通知音が25ms以内に複数回鳴りそうになったらブロックするようにした
Why
Fix #12412
Additional info (optional)
Checklist