Skip to content

Commit

Permalink
fix(frontend): 音がならない問題 (#116)
Browse files Browse the repository at this point in the history
* Update sound.ts

* docs(changelog): Fix: 音がならない問題
  • Loading branch information
anatawa12 authored Nov 30, 2023
1 parent 59e6975 commit 97c1045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
-->

## 2023.x.x (unreleased)

### General

### Client
- Fix: 音がならない問題

### Server

## 2023.11.1-kinel.3

### General
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/sound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica
if (sound.type == null || !canPlay) return;

canPlay = false;
playFile(sound).finally(() => {
playFile(sound.type, sound.volume).finally(() => {
// ごく短時間に音が重複しないように
setTimeout(() => {
canPlay = true;
Expand Down

0 comments on commit 97c1045

Please sign in to comment.