1
I’m making a very simple audio player in C (on Ubuntu) for a college job, and I’m using the SDL library to create windows (graphical interface) along with the Sdl_mixer to play the audio.
The problem is: I need a way for the user to point out the music file he wants to play, like a dialog box that would return the directory of the file chosen by the user so that I could pass it to Sdl_mixer and run it.
On the Internet I only found some tutorials in C# for Windows.
Any idea?
Here you won’t find a tutorial. In what part of your code exactly are you facing problem? Maybe Voce could even share this chunk of code that Voce did and is finding a problem, if applicable.
– Math
SDL does not have functions to create file open windows. So you will have to create a new one, or use a complementary library.
– luiscubal