Skip to content

fix: QOA when using with LoadMusicStreamFromMemory#5108

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
lassade:fix-qoa-music-from-mem
Aug 10, 2025
Merged

fix: QOA when using with LoadMusicStreamFromMemory#5108
raysan5 merged 1 commit into
raysan5:masterfrom
lassade:fix-qoa-music-from-mem

Conversation

@lassade
Copy link
Copy Markdown
Contributor

@lassade lassade commented Aug 10, 2025

LoadMusicStreamFromMemory isn't working for QOA right now, this PR fixes it, the main issue was that file_data_offset should be equal to first_frame_pos mimicking FILE behaviour.

I also joined the file data copy into a single malloc and removed the need of having an extra buffer when the data is already available. So overal it should do less malloc's and less memcpy's.

@raysan5 raysan5 merged commit 9ff8862 into raysan5:master Aug 10, 2025
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Aug 10, 2025

@lassade 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