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

Fix callback being called after dropping the stream #869

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

ZerNico
Copy link
Contributor

@ZerNico ZerNico commented Mar 22, 2024

This fixes #771 by manually stopping the stream on drop.

@ZerNico
Copy link
Contributor Author

ZerNico commented Mar 25, 2024

When I think about it this might not be the best solution because StreamInner is still alive after dropping Stream

@ZerNico
Copy link
Contributor Author

ZerNico commented Mar 26, 2024

Now uses a weak reference to allow the inner stream to drop

@ZerNico
Copy link
Contributor Author

ZerNico commented Apr 26, 2024

Hey @est31, sorry to bother.
Do you think we could get this merged soon or is there anything left to do?
It's a pretty major bug on MacOS

@Avi-D-coder
Copy link

I have bumped into this issue, this PR fixes it for me.
@est31 any chance of getting it merged?

Copy link
Member

@est31 est31 left a comment

Choose a reason for hiding this comment

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

LGTM

@est31 est31 merged commit 02b454c into RustAudio:master Oct 11, 2024
15 checks passed
@est31
Copy link
Member

est31 commented Oct 11, 2024

Sorry for the delays, this crate definitely needed some love.

@morajabi
Copy link

Thank you for your efforts @est31 @ZerNico

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.

Stream dropped but audio callback still being called
4 participants