Skip to content

Commit 43c6ed6

Browse files
committed
Document refuel beep as seek+Play() on each Update()
1 parent 2e8a491 commit 43c6ed6

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

spec/14-sound.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,15 @@ A rising-pitch jingle that plays over 64 frames (~1.3 seconds) when
5959
`ControlFlags.BonusLife` is set. Uses the ROM BEEPER routine with decreasing pitch values
6060
(7 → 0), producing a sound that rises in frequency over time.
6161

62-
### Refueling Beep (One-Shot)
62+
### Refueling Beep (One-Shot per Frame)
6363

64-
A short high-pitched beep played each frame while the plane is actively receiving fuel.
65-
Uses ROM BEEPER. Only plays when the plane is flying straight (not banking).
64+
A short high-pitched beep (~14.6 ms) played once per game frame while the plane is
65+
actively receiving fuel. Uses ROM BEEPER. Only plays when the plane is flying straight
66+
(not banking).
67+
68+
In Ebiten: seek the player to the start and call `Play()` on each `Update()` while
69+
refueling is active. The beep finishes well before the next frame (~67–83 ms), so there
70+
is no overlap.
6671

6772
### Tank Full (One-Shot)
6873

0 commit comments

Comments
 (0)