mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #844] [CLOSED] fix(client): restore HTMLAudioElement calls in combat voice playback #4803
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4803
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/844
Author: @Romuromylus
Created: 5/14/2026
Status: ❌ Closed
Base:
main← Head:fix/combat-voice-html-audio-element📝 Commits (1)
60b466bfix(client): restore HTMLAudioElement calls in combat voice playback📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
packages/client/src/components/game/GameCombatUI.tsx(+5 -3)📄 Description
Linked issue
Closes #842
Why this change
The client build is currently broken on
main(fd768bfe).pnpm --filter @marinara-engine/client run build(andpnpm check) fails with:In
fd768bfe, three calls inGameCombatUI.tsxwere rewritten as ifcombatVoiceAudioRefheld one of the audio layer handles frompackages/client/src/lib/game-audio.ts(theOneShotAudioLayer/LoopingAudioLayerinterfaces, which DO exposestop/setVolume/setMuted). It doesn't —combatVoiceAudioRefisuseRef<HTMLAudioElement | null>(null)(line 634), assigned vianew Audio(url)(line 781). So the three calls don't compile.This blocks anyone building from
main, including any autoDeploy pipeline pointed at it. The taggedv1.5.9release predatesfd768bfe, so published artifacts aren't affected.What changed
packages/client/src/components/game/GameCombatUI.tsxonly. Restored the three call sites to theHTMLAudioElementsurface that the rest of the same component already uses on this ref:stopCombatVoicePlaybackcleanup →pause()+ clearonended/onerror(matches the pause/resume effect on line 821 already calling.pause()directly, and detaches the handlers assigned during playback).audioManager.setMediaElementVolume(combatVoiceAudioRef.current, normalizedGameVoiceVolume)+audioManageris already in scope and used the same way on the creation path (line 783). The mute toggle is set with direct.muted =assignment, mirroring line 784 in the same file.No other files touched; no behavior change beyond restoring the pre-
fd768bfesemantics.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
No UI surface changed; this is a build-time TS regression fix.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.