[PR #843] [MERGED] Fix combat voice audio element calls #4802

Closed
opened 2026-10-22 04:10:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/843
Author: @cha1latte
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @cha1latte

Base: main ← Head: fix/gamecombatui-audio-element-types


📝 Commits (1)

  • 9c5a836 Fix combat voice audio element calls

📊 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

  • upstream/main currently fails pnpm build in GameCombatUI.tsx because combat voice playback stores a browser HTMLAudioElement but calls custom audio-layer methods on it: stop, setVolume, and setMuted.

What changed

  • Stops combat voice playback with valid HTMLAudioElement APIs: pause(), cleared event handlers, and a nulled ref.
  • Keeps the newer audio manager volume path by using audioManager.setMediaElementVolume(...).
  • Updates mute state through the native HTMLAudioElement.muted property.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Reproduced the failure with pnpm --filter @marinara-engine/client build; it failed on HTMLAudioElement.stop, setVolume, and setMuted.
  • After the fix, pnpm --filter @marinara-engine/client build passed.
  • After the fix, pnpm check passed.
  • Local Docker container verification was not run because Docker Desktop / the Linux engine was not available on this machine.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release metadata, schema, dependency, or version files changed.

UI evidence (if applicable)

N/A — this is a TypeScript build fix for combat voice playback.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/843 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/14/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/gamecombatui-audio-element-types` --- ### 📝 Commits (1) - [`9c5a836`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9c5a8368117288b6cf33eb124a6fe4c05e44a8c4) Fix combat voice audio element calls ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+5 -3) </details> ### 📄 Description ## Linked issue Closes #842 ## Why this change - `upstream/main` currently fails `pnpm build` in `GameCombatUI.tsx` because combat voice playback stores a browser `HTMLAudioElement` but calls custom audio-layer methods on it: `stop`, `setVolume`, and `setMuted`. ## What changed - Stops combat voice playback with valid `HTMLAudioElement` APIs: `pause()`, cleared event handlers, and a nulled ref. - Keeps the newer audio manager volume path by using `audioManager.setMediaElementVolume(...)`. - Updates mute state through the native `HTMLAudioElement.muted` property. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Reproduced the failure with `pnpm --filter @marinara-engine/client build`; it failed on `HTMLAudioElement.stop`, `setVolume`, and `setMuted`. - After the fix, `pnpm --filter @marinara-engine/client build` passed. - After the fix, `pnpm check` passed. - Local Docker container verification was not run because Docker Desktop / the Linux engine was not available on this machine. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, release metadata, schema, dependency, or version files changed. ## UI evidence (if applicable) N/A — this is a TypeScript build fix for combat voice playback. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:47 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4802
No description provided.