Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The actual pause/unpause bug fix #1042

Merged
merged 2 commits into from Jan 16, 2023
Merged

Conversation

CommandString
Copy link
Collaborator

It seems that $delay was negative after unpausing because $loops wasn't getting incremented while the stream is paused. This unexpected side effect seemed to be cause the issue. My """fix""" bypassed $loops which is why it seemed to worked but I neglected to test on windows (woops). This new fix however was tested on Windows and Linux. I also had the person who said my original """fix""" broke audio streams test it and they said it works. Note the second commit was me removing some test properties I created in my many many attempts to fix this.

It seems that $delay was negative after unpausing because $loops wasn't getting incremented when the stream was paused. This unexpected side effect seemed to be cause the issue. My """fix""" bypassed the $loop which is why it seemed to of worked but I neglected to test on windows (woops). This fix however was tested on Windows and Linux. I also had the person who said my original """fix""" broke audio streams test and they said it works.
@key2peace key2peace merged commit ccb0048 into discord-php:master Jan 16, 2023
@CommandString CommandString deleted the patch-1 branch January 19, 2023 08:13
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.

None yet

2 participants