How old-tech3465/wiispin works
WiiSpin is a Wii homebrew Sendspin player. Its main workflow initializes the device and audio, connects to a Sendspin server, synchronizes and buffers playback, then presents player state and controls through the on-screen UI. Supporting branches cover secure transport and pairing, visualizations and beat lighting, artwork, and diagnostics. Edges are limited to calls visible in excerpts or capabilities and relationships stated in the README; unsampled implementation details are not inferred.
Main entry points: main.c Runtime coordinator · sendspin.c Sendspin session · pairing.c Pairing flow · audio.c PCM playback and DMA
Components 20
Runtime and playback
- Runtime coordinator
src/main.c - PCM playback and DMA
src/audio.c - Clock synchronization
src/timefilter.c
Connection and identity
- Sendspin session
src/sendspin.c - WebSocket transport
src/ws.c - Noise encryption
src/noise.c - Cryptographic primitives
src/crypto.c - Identity and credentials
src/identity.c - Pairing flow
src/pairing.c - CPace PAKE
src/cpace.c - Pairing code
src/paircode.c
Player experience
- Setup and player UI
src/ui.c - GX rendering
src/ui_gx.c - Display calibration
src/display.c - Artwork decoding
src/artwork_decode.c - Spectrum visualization
src/viz.c - Beat slot lighting
src/disc_led.c
Device support
- Rotating diagnostics log
src/log.c
Other components
- Wii user
- Sendspin server
Connections 23
- Wii user → Runtime coordinator: operates
- Runtime coordinator → Identity and credentials: loads identity
src/main.c - Runtime coordinator → PCM playback and DMA: initializes audio
src/main.c - Runtime coordinator → Display calibration: initializes display
src/main.c - Runtime coordinator → Sendspin session: starts session
- Runtime coordinator → Artwork decoding: decodes artwork
src/main.c - Runtime coordinator → GX rendering: sets artwork
src/main.c - Runtime coordinator → Setup and player UI: presents controls
- Runtime coordinator → Beat slot lighting: updates lighting
- Runtime coordinator → Rotating diagnostics log: writes diagnostics
src/main.c - Sendspin session → Sendspin server: exchanges protocol
- Sendspin session → WebSocket transport: connects through
src/sendspin.c - Sendspin session → Noise encryption: encrypts session
- Sendspin session → PCM playback and DMA: sets playback gain
src/sendspin.c - Sendspin session → Spectrum visualization: pushes samples
src/sendspin.c - Sendspin session → Identity and credentials: persists pairing
src/sendspin.c - Sendspin session → Pairing flow: handles pairing
src/sendspin.c - Pairing flow → CPace PAKE: uses PAKE
- Pairing flow → Pairing code: uses code
- PCM playback and DMA → Clock synchronization: schedules to clock
- Setup and player UI → GX rendering: renders modern mode
- Wii user → Setup and player UI: sets preferences
- Runtime coordinator → Spectrum visualization: displays spectrum