cdplayer is a minimal CDDA (Compact Disc Digital Audio) player for Linux.
It plays audio CDs directly from /dev/sr0 (or other CD devices) with almost
no dependencies — relying only on tinyalsa.
- Plays standard audio CDs via CD-ROM device
- Controlled using UNIX signals (no GUI or TUI)
- Depends only on
tinyalsafor audio playback - Extremely small and hackable C codebase
To compile the program run make or:
cc -Itinyalsa/include -o cdplayer cdplayer.c tinyalsa/src/pcm.c tinyalsa/src/pcm_hw.c tinyalsa/src/snd_card_plugin.c./cdplayer cdrom [card=0] [device=0]cdrom— CD-ROM device like/dev/sr0card— ALSA sound card number (default: 0)device— ALSA PCM device number (default: 0)
You can control playback using UNIX signals:
| Signal | Action |
|---|---|
SIGUSR1 |
Seek forward 1 minute |
SIGUSR2 |
Seek backward 1 minute |
SIGSTOP |
Pause playback |
SIGCONT |
Resume playback |
0BSD – Zero Clause BSD License. See LICENSE for details. Feel free to use, modify, and share freely — no restrictions.
Contributions are welcome! Feel free to submit issues or pull requests.