Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.
/ ESAL Public archive

SSAL (SaCode's Simple Audio Library) as the name implies is a simple audio library for playing .mp3 and .wav files on Windows.

License

Notifications You must be signed in to change notification settings

EimaMei/ESAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSAL (SaCode's Simple Audio Library)

SSAL, as the name implies, is a simple audio library for playing .mp3 and .wav files on Windows written in C++.

How to build the library

  1. Install MinGW with the Win32 headers and binaries.
  2. Build the library with entering make build in the cmd prompt.

Simple example

#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;
};

Credit

The idea for this library came from this repo by Allyedge.

About

SSAL (SaCode's Simple Audio Library) as the name implies is a simple audio library for playing .mp3 and .wav files on Windows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published