Skip to content

Conversation

@ThereDrD0
Copy link
Contributor

I encountered an odd bug: if I go far away from a looped audio source and return, the audio stops playing on the client. Disconnecting and reconnecting restores playback.

I figured out that it was a bug with the playback position calculation. It didn't account for the Loop parameter correctly and stopped playing because the position exceeded the audio length.

Here is a fix. + clean up redundant code and unused usings

Tests

image

Copy link
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

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

Do not copy paste this code around everywhere

@PJB3005 PJB3005 added T: Bugfix Type: Bugs and/or bugfixes A: Audio Audio playback / recording labels Dec 4, 2025
@ThereDrD0 ThereDrD0 requested a review from PJB3005 December 6, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Audio Audio playback / recording T: Bugfix Type: Bugs and/or bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants