Skip to content

tejas-techstack/SongPlaylist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SongPlaylist

Author : Tejas Ramakrishnan Dated : 2/3/2024

What is SongPlaylist?

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.

Features:

On code run, the user can add songs to the playlist and then these songs are played in order.

Current:

  1. Creating a playlist, from existing local songs.
  2. Adding a new song to the end of the queue.
  3. Removing any song based on the song number.
  4. Play Songs using SDL2, SDL_mixer.

Upcoming:

  1. The ability to Pause/Play/Next/Previous.
  2. Adding a song anywhere in the queue.
  3. Removing song based on song name.

How to use:

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.

About

This is a short c project that can play local music inside a playlist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages