Repository navigation
zigreSID v0.4.1-alpha
Release v0.4.1: Improve Wav-Mixing
add getActiveSourceCount() to better manage wav-mixing.
Release v0.4.0: Real-time WAV Mixing
New Features
WAV Mixing System
- Added MixingDumpPlayer - Mix up to 100 WAV sound effects into SID music playback in real-time
- Added WavLoader - Load and parse WAV files (mono and stereo, 16-bit PCM)
- Perfect for game audio: play background SID music while triggering sound effects on-the-fly
- Thread-safe WAV source management with automatic cleanup when sounds finish playing
- Automatic stereo-to-mono conversion for seamless integration
API Additions
- MixingDumpPlayer.init() - Create mixer wrapping a DumpPlayer
- MixingDumpPlayer.addWavSource() - Queue a WAV for mixing
- WavLoader.load() - Load WAV files from disk
- Full example available in src/examples/dump-player-threaded-mix.zig
Improvements
- Fixed stereo WAV playback timing issues
- Optimized buffer management for smooth audio mixing
Use Case
Ideal for retro game development: play authentic C64 SID music as background while dynamically
mixing in sound effects (explosions, laser shots, etc.) without interrupting the music.