Repository navigation
This version introduces real-time audio generation and processing capabilities to flutter_soloud, unlocking low-latency PCM streaming, custom DSP callbacks, and third-party VST3 audio plugin hosting on desktop platforms.
- Real-Time PCM Streaming (
setRealtimeStream) docs
- Instantaneous audio injection: Push raw PCM audio (Float32 or Int16) directly into SoLoud's active mixer output window with ultra-low latency.
- Clocked & scheduled delivery: Supports sample-accurate audio scheduling anchored to physics time (
pushRealtimeClocked) or engine clock time (pushRealtimeScheduled). - Flexible producers: Push audio directly from the Main Isolate, a dedicated worker Isolate via
SoLoudIsolate, or the Web platform. - Underrun protection: Uses lock-free SPSC ring buffering with built-in micro-fades to eliminate audio clicks during buffer starvation.
- Clocked & scheduled delivery: Supports sample-accurate audio scheduling anchored to physics time (
- Procedural Custom Audio Sources (
createCustomAudioSource) docs
- Real-time audio generation: Synthesize audio dynamically on the audio mixing thread using synchronous native (C/C++/Rust) or Web (JS/Wasm) callbacks.
- First-class SoLoud integration: Custom sources behave like standard audio sources—they can be played, paused, looped, volume/panned, spatialized in 3D (
play3d), and routed through mixing buses.
- Custom Multi-Slot DSP Filters (
customFilter) docs
- Up to 8 slots per scope: Attach custom DSP processing blocks to the Global mixer, any
Bus, or individualAudioSources.- Native & Web callbacks: Run custom C function pointers or Web JS functions directly in the audio pipeline.
- Parameter automation & bypass: Full support for SoLoud's built-in parameter automation (
fadeFilterParameter,oscillateFilterParameter), wet/dry mixing, and zero-cost hard bypass.
- Desktop VST3 Plugin Hosting (
Vst3Host) docs
- Host external audio plugins: Load third-party 64-bit Steinberg VST3 plugins on macOS, Windows, and Linux.
- Effects & instruments:
- Insert VST3 audio effects directly into any
CustomFilterSloton Global or Bus scopes. - Play VST3 virtual instruments/synths as
CustomAudioSources with real-time MIDI input (Note On/Off, CC, Pitch Bend).
- Insert VST3 audio effects directly into any
- Native GUI editor windows: Open the plugin's native editor GUI in a standalone floating window (macOS NSView, Windows HWND, Linux X11) with bidirectional parameter synchronization.
- State & presets: Inspect parameters and save/load plugin state chunks and
.vstpresetfiles. - Opt-in build configuration: Enabled via
enable_vst3: truein Dart Native Assets (hook/build.dart) using precompiled hosting libraries, keeping the core plugin lightweight with zero overhead for mobile and web builds.
- New Example Demonstrations (
example/lib/realtime_audiodocs)
- Realtime PCM Synth: Interactive synthesizer rendering audio chunks in real time.
- Isolate Drum Sequencer: Sample-accurate multi-track drum sequencer running in a background isolate.
- Custom DSP Workbench: Live signal generator and custom filter playground with modulatable parameters.
- VST3 Plugin Rack & Piano: Complete host example featuring an interactive on-screen piano keyboard, effect slots, MIDI routing, and native plugin GUI window management.
- Other fixes and improvements on v5.3.0
- feat: add getHardwareOutputLatency to measure OS/hardware presentation delay
- feat: added waveform support to
AmplitudeModulatorFilter(waveform: Sine, Triangle, Square, Saw) - fix iOS: resume audio playback after returning from background on iOS 16+ where
wasSuspendedinterruption reason is no longer sent #573 - fix:
FreeverbFilterno longer doubles the dry signal. Atwet0 the output now equals the input (it used to be +6 dB), and the dry part of any wet/dry mix is half as loud as in 5.2.x; mixes tuned against the old level will sound quieter - fix:
FlangerFilteron a stereo sound sweeps at the rate it is set to, with both channels in step. It used to advance its LFO once per channel per frame, so a 10 Hz setting swept at 20 Hz with the right channel ahead of the left; stereo flanger settings tuned against the old behaviour will sweep half as fast. Thanks to @Colton127 #612 - fix: a fade on a voice group fades each voice from its own volume, pan or speed. It used to start every voice from the first voice's value. Thanks to @Colton127 #612
- fix: with
renderAheadFrames, a speed change on a playing voice takes effect at the next mix quantum after the playhead (up to one quantum later, about 23 ms at 1024 frames and 44.1 kHz) instead of skipping part of the source. Thanks to @Colton127 #612 - fix:
FilterParam.valueof a global filter that is not active throwsSoLoudFilterNotFoundException, as it already did for a voice or a bus; it used to return 9999.bandFrequency()of an equalizer that is not active returns the band's default frequency. Thanks to @Colton127 #612 - fix: setting or reading a filter parameter of a
MixingBusbeforeplayOnEngine()throwsSoLoudSoundHandleNotFoundCppException; it used to be silently lost. Thanks to @Colton127 #612 - fix:
disposeAllSources()also deactivates every global filter and forgets the custom filter callbacks. Thanks to @Colton127 #612 - fix: a waveform played at a negative frequency (
setWaveformFreq) plays backwards. It used to drift out of range or hold at a constant level. Thanks to @Colton127 #612 - fix: a
MixingBusmixes at the engine's sample rate. It used to mix at 44100 Hz whatever the engine's rate, so on a 48 kHz engine a sound started in a bus withplayScheduled,playClockedorsetDelaySamplesstarted about 9% late (a start 4 s ahead was heard 0.35 s late), and everything played through a bus was resampled twice. Thanks to @Colton127 #613 - perf: multiplatform SIMD acceleration (ARM64/ARMv7 NEON, x86/x86_64 SSE2/AVX2, and WebAssembly SIMD128) across core mixing, linear/Catmull-Rom voice resampling, panning, clipping, and PCM format conversions
- perf: accelerated DSP filters, FFT, and synthesis
- perf: reduced real-time lock contention and memory traffic with
O(1)active-sound/handle hash maps, event-drivenMixerOutputcapture wakeups, and chunked planar native decoding on all platforms - fix: resolved native memory leaks, 64-byte cache-line alignment and false-sharing issues,
PCM_S32LEfull-scale saturation wrap-around, and an FFI buffer overflow ingetFilterParamNames - fix: don't drop the end of a voice that doesn't loop. Thanks to @Colton127 #604
- fix: remove double slash in plugin asset path for web initialization #606
- fix windows: prevent process hang at exit when engine is not deinitialized #608
- fix android: detect ADTS before AC-3 syncwords. Thanks to @EmiDS17 #611