SSAL, as the name implies, is a simple audio library for playing .mp3 and .wav files on Windows written in C++.
- Install MinGW with the Win32 headers and binaries.
- Build the library with entering
make build
in the cmd prompt.
#include "include/SSAL.hpp" // Include the library
int main(){
SSAL::audio music("your file location.mp3"); // Init the music file
music.play(); // Play the file
while (music.isPlaying()) { // The loop while the song is being played
music.checkEvents(); // Check for any new events
}
SSAL::quit(); // Quit SSAL when all is done
return 0;
};