Winamp and Spotify's bastard child: I built a music player in Rust

2026-12-04来源 dev.toEnglish

When I was a kid, my friend Greg and I planned a music room: walls of tapes, and a robot that picked the songs. We never built it.

Then came ripped CDs and Winamp, which simply played my files. Then streaming, which picked for me. My own library, thousands of songs, sat on a drive I rarely opened.

So I built the player I actually wanted. It's called Bramp, it's free, and it's in beta.

What it does

  • Windows app that plays your own files from local drives or a NAS: gapless playback, ReplayGain levelling, EQ, synced lyrics, mini mode.
  • Optional home server (Docker) that streams your library to your phone and Android Auto, with offline downloads.
  • Radio from your own library: pick a song and it keeps playing songs that sound like it. The server analyses tempo, key, brightness and loudness in the background.
  • Never touches your files. It only reads them. No renaming, no "organizing".
  • Sends nothing to me. No accounts, no ads, no telemetry.

The stack

Most of it is Rust, in one workspace shared by the desktop app and the server.

  • Decoding: Symphonia, pure Rust, so MP3, FLAC, AAC/ALAC, Opus, Vorbis, WAV and AIFF work without shipping ffmpeg.
  • Output: cpal for the audio device, and rubato for resampling when the device can't run at the file's sample rate.
  • Desktop UI: iced. Media keys and OS media controls through souvlaki.
  • Library index: SQLite via rusqlite.
  • Server: axum. It also speaks the Subsonic API, so existing Subsonic apps (Symfonium, Tempo, Ultrasonic) work with it too.
  • Android: Kotlin and Jetpack Compose, with Android Auto support.
  • Away from home: Tailscale, instead of opening a port to the internet.

A few decisions I'd make again

Read-only, always. A music player has no business rewriting your tags or moving your files. Every feature, from lyrics timing fixes to play counts and favorites, lives in Bramp's own database, never in your music folder.

Server optional. The desktop app is complete on its own. The server only adds what really needs one: your phone, the car, and the audio analysis behind radio.

Subsonic compatibility. Building on an existing API meant the server was useful to other apps from day one, instead of only to mine.

Privacy as a default, not a setting. The only outside lookups are optional (lyrics from LRCLIB, facts from MusicBrainz and Wikipedia), each can be switched off, and they send only artist, album and song names.

Try it

It's a beta: Windows 10/11, Android 9+, and a server for any 64-bit machine with Docker. Linux desktop is coming soon. It's free to use, though not open source.

👉 bramp.coderb.dev

The longer story of the music room is on my blog: The music room we never built.

I'd love feedback, especially from anyone running a self-hosted music setup. What would make you switch?

原文:https://www.a8q9.cn/en/article/winamp-and-spotify-s-bastard-child-i-built-a-music-player-in-rust-521e59.html

相关文章