Skip to content

Audio Example does not work #76

Description

@mpeters2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions