Skip to content

sound: honor the member loop flag for puppetSound / score sounds#191

Open
chameleonxxl wants to merge 1 commit into
igorlira:mainfrom
chameleonxxl:cham/ec-sound-loop
Open

sound: honor the member loop flag for puppetSound / score sounds#191
chameleonxxl wants to merge 1 commit into
igorlira:mainfrom
chameleonxxl:cham/ec-sound-loop

Conversation

@chameleonxxl

Copy link
Copy Markdown
Collaborator

handle_play_file unconditionally reset loop_count to 1 right after puppet_sound had derived it from the sound member's loop flag (0 = loop forever, 1 = play once). That clobber made every score-channel and puppetSound sound play once — a looping intro track (e.g. mobilesdisco's music in sound channel 1, member loop enabled) never repeated.

Thread the loop count through handle_play_file instead of hardcoding it: puppet_sound passes the derived value; direct sound playFile passes 1 (unchanged play-once). Once loop_count is 0, play_file stores the member for replay and start_sound enables native looping.

handle_play_file unconditionally reset loop_count to 1 right after
puppet_sound had derived it from the sound member's loop flag
(0 = loop forever, 1 = play once). That clobber made every score-channel
and puppetSound sound play once — a looping intro track (e.g.
mobilesdisco's music in sound channel 1, member loop enabled) never
repeated.

Thread the loop count through handle_play_file instead of hardcoding it:
puppet_sound passes the derived value; direct `sound playFile` passes 1
(unchanged play-once). Once loop_count is 0, play_file stores the member
for replay and start_sound enables native looping.
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Snapshot Test Report (native)

All 2 snapshots match the reference images.

Generated by CI — 2026-06-08T21:21:54Z

View full run & download artifacts

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Snapshot Test Report (browser)

1 of 164 snapshots differ from reference. Red pixels indicate changes.

Snapshot diffs

Generated by CI — 2026-06-08T21:34:01Z

View snapshot report · View full run & download artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant