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

Added missing "standalone" functions to raudio.c & fixed return bug #3760

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Added missing "standalone" functions to raudio.c & fixed return bug #3760

merged 2 commits into from
Jan 28, 2024

Conversation

aubs-dev
Copy link
Contributor

NOTICE: THIS IS THE SAME COMMIT AS #17 IN RAUDIO. I PUT THIS HERE TO HAVE BOTH REPOS SYNCED.

Hey,
While I updated raudio #16, I also found some bugs & afterthoughts with "raudio.c".

First, as GetFileNameWithoutExt, GetFileName & strprbrk were linked to Raylib itself I had to add them to "raudio.c" under the "RAUDIO_STANDALONE" define for standalone mode to work. Point at which the functions were added:

Second, I use a lot compiler flags so it found that "SaveFileData" & "SaveFileText" in "raudio.c" were missing return values. Surprisingly a lot of variables inside "raudio.c" were actually using the values returned, that were never actually given.

@raysan5 raysan5 merged commit cf10cdd into raysan5:master Jan 28, 2024
@raysan5
Copy link
Owner

raysan5 commented Jan 28, 2024

@sanyokdev Thanks for the review! As raudio is integrated into raylib this issue was not detected before...

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