How to load audio and make a button


Please help me!I start to learn SDL 2.0.8 yesterday.I try to make simple media listener like Windows Media dut I don`t know how to make a button or load a sound.


Part 1:

Hope this helps,


How to play/pause/halt music. Gonna add gui buttons in 30 Minutes.

Hope that helps,


Part 3.


Final Part:
Combining these things leads to something like this.

Check Docs for SDL2 API-Calls:

Good luck with your project!