Rustamp is a media player that looks, feels and works like Winamp 2.95, on a modern backend written in Rust.
- Look and feel: the classic Main, Equalizer and Playlist windows, with
docking, windowshade, double-size, the original keyboard shortcuts and
classic
.wszskins. Rendering is checked pixel-for-pixel against the real Winamp 2.95 with its original base skin (currently 99.5 % of the pixels over eleven window states; what differs is documented, see docs/notes/base291-skin-acceptance.md). - Modern pipeline: 64-bit Rust, a Symphonia decoder stack (MP3, FLAC, Ogg Vorbis, WAV, AIFF, AAC/ALAC, MKA), gapless playback, a 10-band equalizer, WASAPI output, HTTP/HTTPS streaming.
- Classic plugins: Winamp 2.x input, output, visualization, DSP and general
purpose plugins run in a separate 32-bit helper process
(
rustamp-plughost), so a crashing plugin cannot take the player down. The loader works with our own fixtures,in_openmptand one third-party DSP; all eleven plug-ins of the Winamp 5.66 installer load, and the player runs MilkDrop 2.25c and AVS end to end in the test VM (see Status below for the limits). - Platforms: Windows first. Linux and macOS come later, with classic plugins under Wine.
Version 1.2.1 plays music and supports classic skins and plugins. The following capabilities and verification still have limitations:
| Works | Not yet |
|---|---|
| Main, equalizer and playlist windows, skins, shade and double-size; the spectrum analyser and oscilloscope | Real-hardware audio and GPU verification |
| Playback, seeking, gapless, EQ, volume and balance, and a crossfade of 0 to 30 seconds | The installer's wizard pages by hand: its silent install, a start of the installed player and the uninstall ran in the test VM |
| Classic plug-ins in the separate 32-bit host: input, output, visualization, DSP and general purpose. All eleven plug-ins of the Winamp 5.66 installer load, and the end-to-end tests run the real ones — see Classic plug-ins | A general purpose plug-in's own menu entries (IPC 281 answers 0), and the embed flags a visualizer can ask for |
| MilkDrop 2.25c inside the plug-in host, drawing the player's own audio | A GPU run of MilkDrop 2 (the test VM has no GPU); the player's own MilkDrop window is built but held back from this release (see docs/HANDOFF.md) |
Playlists: M3U, M3U8, PLS, XSPF; Add file / folder / URL (Ctrl+L) |
The remaining measured pixel differences (equalizer curve, paused peak mark, playlist thumb) |
Streaming over http:// and https:// with Winamp's status prefixes in the title ([Connecting], [Buffer: 42%]) |
|
| Media library database, tag editing | |
| Preferences: plug-in pages with an explicit switch-on and an Approve step, the output page with the player's own output, the visualization mode, snap distance, the skin folder and the plug-in folder |
The player hosts Winamp 2.x plug-ins of every kind in a separate 32-bit helper process, so a plug-in that crashes cannot take the player down. The end-to-end tests in the test VM run these real plug-ins; the survey behind them and its measurements are in docs/notes/real-plugin-survey.md.
- Input:
in_wave,in_flac,in_vorbis(the Winamp 5.66 set) andin_openmpt. - Output:
out_waveandout_disk; the first output plug-in switched on is the player's device, and its own clock decides how much of a track counts as played. - Visualization:
vis_avs(AVS 2.82),vis_milk2(MilkDrop 2.25c) andvis_chavs(Cockos Happy AVS, the 2.91 fork with the newer EEL). - DSP:
dsp_optilab_core; a library's second and later modules can be chosen. - General purpose plug-ins are loaded, answered and quit cleanly.
The binaries are unsigned, so Windows SmartScreen may warn on first start. There is no auto-update. There are two packages: the portable zip, and a per-user installer that needs no administrator rights.
Releases are built by CI from version tags and published on the
releases page. Each release has
a portable zip and a per-user installer, each with a .sha256 file next to it:
# verify, then unzip anywhere and run rustamp.exe, or run the setup
(Get-FileHash .\rustamp-1.2.1+*.zip -Algorithm SHA256).Hash
(Get-FileHash .\rustamp-1.2.1+*-setup.exe -Algorithm SHA256).Hash
Get-Content .\rustamp-1.2.1+*.zip.sha256The zip and the installer bundle the 64-bit player, its helper processes, the 32-bit plugin host,
the licenses and a quickstart (QUICKSTART.md). The C runtime is linked statically, so no Visual C++
redistributable is needed.
rustamp [<file|url>] [--null] [--no-audio] [--volume <0..=255>] [--skin <path>]
[--seconds <n>] [--enqueue] [--import-winamp-ini [path]] [-h|--help]
rustamp [/CLASS=<name>] [/CONFIG=<path>] [/BOOKMARK <path>] [/ADD <path>]
[/INSTALL] [/UNREG] [/NOREG] [/ONLYINSTALL]
- A file path or an
http(s)://URL starts playback.--enqueueadds without playing;/ADDappends to the list the way the reference does it: a running player only appends, a first start then plays the list from its first entry. Ctrl+Lopens a URL,Lopens files,Shift+La folder, the same as in Winamp.--skintakes a folder,.wszor.zip; the default is the Rust-themed skin, and--skin lookalikeselects the classic look-alike.--import-winamp-inireads (never writes) a Winamp 2.95winamp.ini.- Release builds are GUI programs; add
--consoleto see the player's notes.
Requirements: the stable Rust toolchain (pinned in rust-toolchain.toml) and the
MSVC build tools on Windows.
cargo build --workspace
cargo run -p rustamp-appThe plugin host is 32-bit, because classic Winamp plugins are x86 DLLs:
rustup target add i686-pc-windows-msvc
cargo build -p rustamp-plughost --target i686-pc-windows-msvcThe release packages are built with the same command CI uses. The installer
needs NSIS 3.13 (makensis on PATH or in MAKENSIS):
cargo xtask package --release --zip --installer # output in target/package/cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-featuresThese are the headless tests; they open no window and need no audio device.
Tests that open real windows, spawn the plugin host or touch an audio endpoint
are #[ignore]d and run inside a disposable Hyper-V VM (docs/notes/vm-*.ps1),
never on a developer machine.
The skin acceptance tests compare against the original Winamp base skin
(base-2.91.wsz, from the MIT-licensed webamp
repository). It is not part of this repository: point RUSTAMP_BASE291_SKIN at
it, or the tests are skipped (with RUSTAMP_REQUIRE_BASE291=1 a missing skin is
a failure, which is what CI uses).
GitHub Actions runs on Windows runners:
- every push to
mainand every pull request (ci.yml): the licence audit,fmt,clippy -D warnings, the headless tests (the base skin is downloaded from webamp and checked against a pinned SHA-256) and the 32-bit plugin host build; - every
v*tag (release.yml): the same tests, thencargo xtask package --release --zip --installer. The files are stored as workflow artifacts and attached to a draft GitHub release, which a maintainer publishes.
To cut a release: bump the workspace version, add docs/RELEASE-NOTES-<version>.md,
then git tag -a v0.1.1 -m "Rustamp 0.1.1" and git push origin v0.1.1.
A Cargo workspace of small crates; the contracts between them live in
rustamp-core and change only through an RFC in docs/rfc/.
| Area | Crates |
|---|---|
| Player and windows | rustamp-app (the program), rustamp-ui (windows and behaviour), rustamp-gfx, rustamp-skin, rustamp-platform (Win32) |
| Audio | rustamp-audio (engine), rustamp-decoders, rustamp-dsp, rustamp-output, rustamp-meta (tags) |
| Plugins and processes | rustamp-plughost (32-bit host), rustamp-plugin-abi, rustamp-ipc, rustamp-proto, rustamp-mediahost, rustamp-dechost, rustamp-dsphost |
| Data | rustamp-playlist, rustamp-library, rustamp-prefs |
| Visualization | rustamp-vis, rustamp-milkdrop |
| Tooling | rustamp-testkit, xtask |
Behaviour is specified, not guessed: specs/ holds the audited specifications (window geometry, menus, shortcuts, the plugin ABI, streaming, ...), docs/PLAN.md the architecture and milestones and docs/HANDOFF.md with the dated ledgers the current state.
Rustamp reproduces the behaviour of a closed-source program, so the work is
split in two rooms. A dirty room observes the real Winamp 2.95 (runs it,
captures screenshots and timings) and writes specifications in its own
words; an auditor checks them for copied wording; only audited specs reach
specs/. The clean room (everyone who writes Rustamp code) works from those
specs and from freely licensed sources only, and never reads Winamp source,
SDK headers or disassembly. The binding rules are in CLEANROOM.md.
Rustamp ships a Rust-themed default skin and a selectable look-alike skin. Their artwork was drawn from scratch and contains no pixels from Winamp.
The original base skin is a separate, optional download with its own
package. It is not bundled. Rustamp can load any classic .wsz skin.
Winamp is a trademark of its respective owner. Rustamp is an independent project and is not affiliated with, endorsed by or sponsored by the owner of Winamp.
Please read CONTRIBUTING.md and CLEANROOM.md before opening a pull request. The clean-room rules are binding: contributors must not use Winamp source code, SDK material or disassembly for implementation work.
Rustamp is split-licensed, because the process that loads classic plugin DLLs must not carry copyleft onto plugins of other licenses:
| Part | License |
|---|---|
rustamp-proto, rustamp-plugin-abi, rustamp-ipc, rustamp-plughost, rustamp-mediahost |
MIT OR Apache-2.0 |
| everything else (the player and its crates) | GPL-3.0-or-later; additional permission only within the scope below |
a future per-resident helper crate (rustamp-mediahost-<resident>) |
the resident's own license obligations — the sidplayfp host is GPL; Symphonia is MPL-2.0 (weak copyleft), not permissive |
The GPL crates listed in the scope of PLUGIN-EXCEPTION.md carry a GPL-3.0 §7
additional permission for Rustamp's own code only, so that combining them
with modules that speak the documented plugin ABI or the documented IPC protocol
needs no further grant for that covered code: see PLUGIN-EXCEPTION.md.
It cannot grant rights in third-party copyleft material; rustamp-decoders,
rustamp-skin and per-resident helpers are not covered by its scope. The
decision and its reasoning are in
docs/rfc/0004-plugin-licensing.md and
docs/notes/L-licensing-plugins.md; the
Winamp plugin SDK's own terms are read in
docs/notes/SDK-licensing.md. The GPL text is in
LICENSE, the permissive texts in
LICENSE-MIT/LICENSE-APACHE. Third-party code
and its licenses are listed in THIRD_PARTY.md.