Skip to content

Wrap player state assertion with DEBUG check#929

Merged
sbooth merged 1 commit into
mainfrom
wrap-assert
Jun 8, 2026
Merged

Wrap player state assertion with DEBUG check#929
sbooth merged 1 commit into
mainfrom
wrap-assert

Conversation

@sbooth

@sbooth sbooth commented Jun 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 13:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the AudioPlayer::playbackState() invariant assertion (isPlaying implies engineIsRunning) compile only in debug builds, aligning it with the project’s existing debug-only assertion/logging patterns.

Changes:

  • Wraps the playbackState() internal assert(...) with #if DEBUG / #endif.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sbooth sbooth merged commit 5a74dde into main Jun 8, 2026
3 checks passed
@sbooth sbooth deleted the wrap-assert branch June 8, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants