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 #17

Merged
merged 2 commits into from
Jan 28, 2024
Merged

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

merged 2 commits into from
Jan 28, 2024

Conversation

aubs-dev
Copy link
Contributor

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
Copy link
Owner

raysan5 commented Jan 28, 2024

@sanyokdev Thank you very much for the review! I usually focus on raylib/raudio module and I forget I also kept it as a separate repo. Thanks!

@aubs-dev aubs-dev deleted the standalone-bugfix branch January 29, 2024 00:56
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