How to load audio and make a button


#1

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.


#2

Part 1:

Hope this helps,
-Cass


#3


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

Hope that helps,
-Cass


#4

Part 3.


#5

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

Check Docs for SDL2 API-Calls:
https://wiki.libsdl.org/APIByCategory

Good luck with your project!
-Cass