Author : Tejas Ramakrishnan Dated : 2/3/2024
This short project is a c99 based program to play songs stored locally. The project is meant to demonstrate an application of linked lists(circular linked lists) in real time.
To play the songs SDL (Simple DirectMedia Layer) is uesd. It is a library in C that allows low level access to WAV formatted files.
SDL-mixer is also being used to play songs of different formats like MP3, OGG, MIDI, etc. This is a sub-library of SDL2 and it also supports WAV format.
On code run, the user can add songs to the playlist and then these songs are played in order.
Current:
- Creating a playlist, from existing local songs.
- Adding a new song to the end of the queue.
- Removing any song based on the song number.
- Play Songs using SDL2, SDL_mixer.
Upcoming:
- The ability to Pause/Play/Next/Previous.
- Adding a song anywhere in the queue.
- Removing song based on song name.
The use of this program requires gcc compiler to be installed.
The program requires the following packages to be installed.
Linux:
sudo apt-get update
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-mixer-dev
Windows:
To run the code, compile it as such:
gcc -o Playlist playlist.c -lSDL2 -lSDL2_mixer
this creates a executable file called Playlist
which can be used to run the code.