Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Audio Example does not work #76

Open
mpeters2 opened this issue Feb 2, 2024 · 0 comments
Open

Audio Example does not work #76

mpeters2 opened this issue Feb 2, 2024 · 0 comments

Comments

@mpeters2
Copy link
Contributor

mpeters2 commented Feb 2, 2024

It gives me the following error:

ERROR: /Users/SomeGuysAccount/Documents/Development/Julia/SDL_Beeper/audio_example/beat.wav not found.

but if I insert the first three lines below...

if isfile("$aud_files/beat.wav")
	println("FOUND beat.wave AUDIO FILE!!!!!!!!!!!")
end

music = Mix_LoadMUS("$aud_files/beat.wav")

if (music == C_NULL)
    println(">>>", unsafe_string(SDL_GetError() ) )
    error("$aud_files/beat.wav not found.")
end

It prints FOUND beat.wave AUDIO FILE!!!!!!!!!!!, yet in the debugger, it shows the variable music as having a NULL pointer. In addition, I can successfully play the beat.wav file in the Finder, but when I print the SDL_GetError, I get Unrecognized audio format.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant