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 bugs in Sample::play #7408

Closed
wants to merge 4 commits into from

Conversation

sakertooth
Copy link
Contributor

@sakertooth sakertooth commented Jul 30, 2024

I missed an edge case in #7361. src_callback_read returns the number of frames generated or zero. That means that it is not necessarily the case that src_callback_read will return the number of frames requested all the time. Also checked for a potential error (that really shouldn't ever happen) on calls to src_set_ratio with an assert.

Fixes #7400 (I think?)
Fixes #7395 (I think?)

Wont occur unless something
really bad happens for some
reason, so an assert is used.
@sakertooth sakertooth changed the title Fix bugs sample playback Fix bugs in Sample::play Jul 30, 2024
@sakertooth
Copy link
Contributor Author

Inviting @AW1534 and @YesImAsh for testing to see if the issues I linked are resolved.

@AW1534
Copy link
Contributor

AW1534 commented Jul 30, 2024

@sakertooth is there a way i can obtain a build or do i have to build it myself

@sakertooth
Copy link
Contributor Author

sakertooth commented Jul 30, 2024

@sakertooth is there a way i can obtain a build or do i have to build it myself

Apologies, there was an error with the build. It should be here.

@sakertooth
Copy link
Contributor Author

I edited the message to provide a proper link to the build. It should be up there now.

@AW1534
Copy link
Contributor

AW1534 commented Jul 30, 2024

It didn't fix anything. I'll try your new commit once it's built. Would it be the same URL?

@sakertooth

@sakertooth
Copy link
Contributor Author

sakertooth commented Jul 30, 2024

It didn't? I'm not sure then. Still a good PR to merge I guess, but I'm surprised it fixed nothing.

And yeah, the latest builds should always be at that link.

@AW1534
Copy link
Contributor

AW1534 commented Jul 30, 2024

latest build has the same behaviour

@sakertooth
Copy link
Contributor Author

Closing in favor of the revert at #7410. It should be fixed there.

@sakertooth sakertooth closed this Jul 30, 2024
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.

Left channel is way higher than right channel Drums click for no reason
2 participants