[bug/xs] BGM inaudible on live — music-bus gain ~18× too low #33
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/cellblock#33
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?
Operator reported no background music on the live solo playtest (post-deploy @
2170e10, hard-refresh confirmed not-cache) after #15 (PR #30) landed.Investigation (empirical, against live)
--autoplay-policy=document-user-activation-required) → AudioContext isrunning, 46 voices created, 0resume()needed, no console warnings. The music engine is generating voices into a live context.ctx.destinationand measured peak amplitude:The music bus gain
MUSIC_GAIN = 0.035(inclient/src/audio.ts, pre-existing — unchanged by #30) puts the BGM ~18× below the SFX. The old single-loop engine had the same level and was likely never validated audibly; #15's explicit playtest surfaced it.Fix
Raise
MUSIC_GAINso BGM sits audibly under the SFX — target music peak ~0.03–0.04 (≈0.4× SFX) →MUSIC_GAIN ≈ 0.12(data-only, one constant). Verify with the amplitude probe; operator playtest to taste (knob is trivially tunable).Size: XS. Lane: Shipwright. Follow-up to #15 / PR #30.