o
odinpkg.dev
packages / library / smp

smp

v0.0.7library

simple music player

No license · updated 2 weeks ago

SMP

Simple Music Player This is my attempt at a music player that does that and only that.

TODO:

  • Quit the window
  • Read from dir
  • Load music
  • Play Music
  • Keybinds for next/prev play/pause
  • Seek forwards/back
  • Shuffle
  • Repeat(Single/All/None)
  • Cosmetic things (These are enough)

I make alot of assumptions:

  • Your Music is n $HOME/Music
  • Most of your audio is in raylib's supported format:
    • wav
    • mp3
    • ogg
  • You are comfortable with the keyboard.

Usage

Requirements:

  • Odin compiler
  1. Bootstrap*
odin build first -out:first.bin
  1. Build
./first.bin release
  1. Use
./smp

or copy the generated smp.desktop from resources to ~/.local/share/applications/ to allow starting it from your favorite launcher

3.1.

cp ./resources/smp.desktop ~/.local/share/application/

Controls

Key Action
SPACE play/pause
N Next track
P Previous track
S Toggle Shuffle
R Cycle between repeat modes
ARROW_RIGHT Seek forward by 5 seconds
ARROW_LEFT Seek backwards by 5 seconds
? Show the keybinds

smp smp smpl smp help