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

[raudio] Support 24-bit FLACs in LoadMusicStreamFromMemory #4279

Merged

Conversation

konstruktor227
Copy link
Contributor

When loading FLAC files using LoadMusicStreamFromMemory, 24-bit files play either silence (Windows) or extreme noise (Linux, macOS), while 16-bit files work all fine.

While debugging this I stumbled on #4058, which recently fixed the same problem in LoadMusicStream by forcing conversion to 16-bit.

Here simply copying the same fix to LoadMusicStreamFromMemory, which fixes all the issues with 24-bit files for me.

Force conversion to 16-bit, same as how it is done in `LoadMusicStream`.
This fixes the problem where 24-bit FLACs play silence or broken sound.
@raysan5 raysan5 merged commit b0c3013 into raysan5:master Aug 23, 2024
@raysan5
Copy link
Owner

raysan5 commented Aug 23, 2024

@konstruktor227 Nice! Thanks for the review! 😄

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