Refactor AudioPlayerManager boolean flags into an explicit state machine #17
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
llmad/Aulos#17
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?
AudioPlayerManager currently tracks playback state through a cluster of loosely-coupled boolean flags and optionals:
Examples of current bugs
Proposed solution
Replace the boolean flags with a single explicit state enum, e.g.:
All state transitions should go through a single method:
This method would enforce valid transitions, reset transient values automatically, and cancel/schedule tasks as needed.
Acceptance criteria