Skip to content

Commit 89ef303

Browse files
committed
re-encode the sound files with increased volume
1 parent 81d54aa commit 89ef303

File tree

10 files changed

+3
-4
lines changed

10 files changed

+3
-4
lines changed

src/main/client/public/1.wav

0 Bytes
Binary file not shown.

src/main/client/public/2.wav

0 Bytes
Binary file not shown.

src/main/client/public/3.wav

0 Bytes
Binary file not shown.

src/main/client/public/4.wav

0 Bytes
Binary file not shown.

src/main/client/public/5.wav

0 Bytes
Binary file not shown.

src/main/client/public/6.wav

0 Bytes
Binary file not shown.

src/main/client/public/7.wav

0 Bytes
Binary file not shown.

src/main/client/public/8.wav

0 Bytes
Binary file not shown.

src/main/client/public/9.wav

0 Bytes
Binary file not shown.

src/main/client/src/feature/game/Board.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function Board({
7070
let showMoveNumbers = ctrlKeyDown && (isKibitz(gameState, auth) || end)
7171
let howlerActive = useRef(false)
7272

73-
let playSound = useCallback(({file, volume}) => {
73+
let playSound = useCallback(({file}) => {
7474
if (!howlerActive.current) {
7575
return
7676
}
@@ -80,15 +80,14 @@ export function Board({
8080
if (!howler.current[file]) {
8181
howler.current[file] = new Howl({
8282
src: [base + "/" + file + ".wav"],
83-
volume: volume,
8483
})
8584
}
8685
return howler.current[file].play()
8786
}, [howler, muted])
8887

8988
useEffect(() => {
9089
if (!end && !counting && timeRemaining >= 1 && timeRemaining <= 9) {
91-
playSound({file: "" + timeRemaining, volume: 1})
90+
playSound({file: "" + timeRemaining})
9291
}
9392
}, [playSound, timeRemaining, end, counting])
9493

@@ -215,7 +214,7 @@ export function Board({
215214
}))
216215
}
217216
resetCountdown()
218-
playSound({file: "stone1", volume: 0.04})
217+
playSound({file: "stone1"})
219218
stompClient.publish({
220219
destination: "/app/game/move",
221220
body: JSON.stringify(move),

0 commit comments

Comments
 (0)