▣
module · drop-in viewer
cues
`game.Sound` bumps a counter every time it hands a clip to the mixer, so a round can be checked against the events that drove it: one kick sound per `kick`, one line per `say`, one surge and one lamp.
by·posted 1mo ago
What it does
audio.cues — the tally of what was actually played
game.Sound bumps a counter every time it hands a clip to the mixer, so a
round can be checked against the events that drove it: one kick sound per
kick, one line per say, one surge and one lamp.
local C = require("audio.cues")
C.reset()
-- play a round --
C.report() -- { played = { kick = 34, land = 33, ... }, refused = {}, total = 71 }
Reading a component's fields says what was ASKED for. This says what was SENT,
which is the half that a missing clip or a cue with nothing behind it
otherwise hides — refused counts exactly those.
It counts; it decides nothing. Nothing in the game reads it.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.