Audio: 3 of 8 registered SFX have no call sites — coin_hit_shallow / kumbaya_whoosh / warbow_twang never played #108
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#108
Loading…
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?
P3-low audio gap: 3 of the 8 SFX registered in
frontend/src/audio/sfxUrls.tshave zeroplaySfx/playGameSfxcall sites in the codebase. Direct regression of #68 acceptance criterion 4 ("The eight*.wavabove are used where the table says").Inventory (all 8 SFX)
sfxUrls.tsAudioEngineProvider.tsx:71-80)playSfxplayGameSfx*ui_button_clickAudioEngineProvider.tsx:130, 137)charmed_confirmAudioEngineProvider.tsx:17)peer_buy_distantWebAudioMixer.ts:315playGameSfxPeerBuyThrottledtimer_heartbeat_calmWebAudioMixer.ts:322playGameSfxTimerCalmThrottledtimer_heartbeat_urgentWebAudioMixer.ts:329playGameSfxTimerUrgentThrottledcoin_hit_shallowkumbaya_whooshwarbow_twangRepro
Spec impact
Dev's
54ba8cdcommit notes claim:Neither of those wirings is present in the code today on
243e2a0.warbow_twangis the most-orphaned: not even prefetched.Severity
P3-low. Audio polish, not security or correctness. But:
frontend/public/sound-effects/and add to bundle / asset payload size with no payoffwarbow_twangbelongs to WarBow PvP — should probably fire on Steal / Guard / Revenge submits per the WarBow hero work in #101Suggested fix
Three small wirings:
coin_hit_shallow— call afterwriteContractAsyncsubmit on the buy paths (useTimeCurveSaleSession.ts/ Arena buy)kumbaya_whoosh— call inside the pay-mode setter callback inTimeCurveSimplePage.tsx(CL8Y / ETH / USDM toggle)warbow_twang— call inrunWarBowSteal/runWarBowGuard/runWarBowRevengeinuseTimeCurveArenaModel.tsxafter their respectivewriteContractAsynccalls; also add to theprefetchCommonSfxlist inAudioEngineProvider.tsx:71Acceptance
grep -rE 'playSfx\("|playGameSfx\(' srcreturns hits for each).warbow_twangadded to theprefetchCommonSfxlist.cc @PlasticDigits
mentioned in issue #68
Duplicate of #68
mentioned in commit
ae72b9d016