Engine 0.9.0
Release notes for Engine 0.9.0.
25 changes — 16 features, 7 fixes, 2 breaking changes
Minor Changes
-
#303
78f82f2Thanks @dm-balakin! - Declare plugin kind, categories and vendor metadata, audio buses and complete supported layouts, latency/tail reporting, parameter groups and a host bypass role. Generate JUCE host integration and explicit browser channel counts, with validation for unsupported browser buses. Existing projects retain handwritten audio setup unless they opt into the audio contract. MIDI and presets are separate features. -
#320
1cb3161Thanks @dm-balakin! - The engine hosts the plugin's Rust processor, natively and in the browser; the runtimes keep the audio callback, the AudioContext and the plugin's lifecycle. Neither the Rust SDK nor its ABI changes, and a plugin's code needs no change.@soundor/engine:soundor/processor/RustProcessor.h, the bridge to the processor's C ABI (RustProcessorAbi.h, moved from the JUCE runtime), free of JUCE:processor::RustProcessorprocesses an array of channel pointers in place, and reaches the plugin's linked library throughprocessor::linkedRustProcessor(), so the engine itself references none of its symbols.@soundor/engine/web/processor:WasmProcessor, the AudioWorklet andcreateProcessorNode(), moved from the web runtime, apart from@soundor/engine/web.@soundor/juce-runtime: the generated processor uses the engine's bridge;backend::RustProcessorbecomesprocessor::RustProcessor(rustProcessor()returns it), and the JUCE adapter (JuceRustProcessor.h) keepsbackend::rustBusLayout(),backend::rustTransport()andbackend::processRust().@soundor/web-runtime: the host loads the engine's processor host only once the plugin has a processor and audio starts.@soundor/web-runtime/processoris the engine's entry;@soundor/web-runtime/clientno longer exportscreateProcessorNode, which@soundor/web-runtime/processorhas.
-
#317
3604ae0Thanks @dm-balakin! - Experimental: the engine's platform-independent core (its node tree, Yoga layout, styles and text layout) compiles to WebAssembly with Emscripten (cmake --workflow --preset wasm,pnpm build:wasm), from the same sources as the native runtime, without Hermes or Skia.@soundor/engine/webloads the module (Engine.create({ wasmUrl })), drives it with batched commands, and shows its tree as HTML elements placed where the engine laid them out (engine.mount(container)), with text measured by the browser. The module is not part of the package. soundor:ui's style reading is now shared by the native binding and the WebAssembly engine (ui/StyleReader), with unchanged behavior. -
#319
ada8d88Thanks @dm-balakin! - The WebAssembly core is part of the engine's prebuilt release:soundor-engine-<version>-web-release.tar.gz, withsoundor-core.wasm, its metadata and license notices, beside the native archives, and named inartifacts/manifest.jsonwith its own input fingerprint and protocol version. A release cannot be published without it.@soundor/enginehas a Node API,engine({ target, mode }), for build tooling:targetisweb,linux-x64,windows-x64ormacos-universal(with a nativevariant),modeisprebuilt(the default),publishedorsource. It downloads the version's published artifact once into the Soundor cache (shared with CMake's prebuilt mode), verifies it and returns absolute paths: the module forweb, headers, libraries and link flags for a native target. In the engine's source checkout it uses the release only while the sources match, and builds them otherwise. Download, checksum and manifest failures are errors, never a reason to build.pnpm build:wasmis its source mode, and stages the module as the release archive holds it.The module exports its protocol version (
soundor_engine_protocol), which@soundor/engine/webchecks before using it: a module of another engine version fails with what to do. -
#318
1cd9728Thanks @dm-balakin! -@soundor/engine/webis the web runtime'ssoundor:ui: its DOM adapter covers every node type (views, text, images, inputs, canvases, SVG) on both roots (the content and the overlay layer), with events, focus, accessibility, scrolling,ResizeObserverand animations.Engineis the view (Engine.load(),Engine.create(),new Engine(),createView()and the like,mount(),dispose()) and its nodes areUiNodes; the experimentalEngineNodeAPI is replaced. The WebAssembly core readstransformandboxShadowas natively, sizes images, canvases and SVGs by the natural size the browser gives, measures inputs, reports scroll extents, checks a style when it is set, and measures text again when web fonts load. Reading a style allocates no keys (ui/StyleReader), natively too. -
#303
a718364Thanks @dm-balakin! - Declare validated factory presets in config and load them synchronously through soundor:presets or the generated C++ processor. Share the existing parameter/state stores and StateHistory, including opt-in atomic undo entries, nested transactions, selection and modified tracking, and restoration matching. Expose JUCE host programs from the same catalog; preserve DAW state/preset compatibility without changing the snapshot format. Include matching Web and simulated runtime APIs. -
#311
64dae3aThanks @dm-balakin! - Use native AT-SPI over GDBus for Linux accessibility, with queued actions, values, focus and change notifications, private editor connections, and cancellable teardown. Apple platforms retain their native bridges. -
#340
b4dcb85Thanks @dm-balakin! - Read Linux input natively instead of through JUCE. On X11 (XWayland included) the engine's newinput::PlatformInput(soundor/input/Platform.h) reads a plugin view's pointer, wheel, keys, text and focus with XInput 2 on a connection of its own, which the X server then delivers in place of the core events JUCE selects, so each event reaches the UI once; the generated JUCE editor services it through JUCE's event loop (the host's VST3 run loop) and gives it to the surface as it gives JUCE's input. Touchpads and high-resolution wheels scroll smoothly by fractions of a notch, horizontally and diagonally, from the XInput 2.1 scroll valuators, without the emulated wheel buttons scrolling twice; a stepped wheel still scrolls three lines a notch. Text goes through an X input method (dead keys and Compose with no daemon, IBus or Fcitx where configured) while a text input has the focus. Clicks are counted by the desktop's double-click time, chorded buttons are moves as Web pointer events have them, and a press the view loses is cancelled. libX11 and libXi are loaded at run time, never linked (building the engine needs their headers:libx11-dev,libxi-dev); without them the editor keeps JUCE's input and logs why. macOS and Windows keep JUCE's input. -
#326
8002969Thanks @dm-balakin! - Require every plugin to export its Rust processor and controller. Scaffold separate entry, controller and processor modules, including an empty controller when no native methods are configured.Run the same generated Rust NativeMethods contract in browsers through WASM, with instance stores, wake-driven async execution, control-thread scheduling, host services and resource publication to the separate AudioWorklet processor. Remove production WebNativeApi implementations and the browser host's native option. Move those methods to Rust and regenerate/rebuild existing projects. The portable Send/Sync bounds remain; unblock is native-only, and browser futures execute cooperatively on the main thread.
-
#333
c15667dThanks @dm-balakin! - Wire MIDI into native and Web processor hosting, the JavaScript module, controller transport and test runtime. Add bounded AudioWorklet delivery, explicit Web MIDI device routing, JUCE capabilities, VST3 host virtual input/conversion and optional Linux ALSA input. MIDI effects default to an audio-free layout. -
#321
bb8b0a0Thanks @dm-balakin! - Breaking: native channels are now called native streams, so they are not confused with an audio buffer's channels. The behavior is unchanged: they still go from audio to the UI only, keep only the latest value, deliver at most one value per frame, and publish without locks or allocations.- Config:
native.channelsis nownative.streams, and no method can be calledstreams. - UI:
import { streams } from 'soundor:native', typedNativeStream<T>. - Rust:
ctx.streams.peak.publish(…).soundor::Streams,ValueStream,BufferStreamandStreamElementreplaceChannels,ValueChannel,BufferChannelandChannelElement.TestProcessor::stream()andstream_buffer()replacechannel()andchannel_buffer(). - C++:
soundor::native::Streamsreplacesnative::Channels, and the processor's member isnativeStreams. The engine'ssoundor/js/Streams.hdeclaresjs::ValueStream<T>andjs::BufferStream<T>, withjs::deliverStreams(),bind::connectStreams()andbind::installStreams().TickStatistics::streamsreplacesTickStatistics::channels. - Tests:
publishStream(name, value)from@soundor/testing-libraryreplacespublishChannel(). - Web: the generated contract exports
streamsto the project'sruntimes/webcode.@soundor/engine/web's processor takesstreamsand reports changes throughonStreams.
The Rust processor's binary interfaces keep their layout and their WebAssembly export names (
soundor_wasm_channel_*), so the processor ABI version is unchanged. - Config:
-
#315
ec80d0cThanks @dm-balakin! - Use native Microsoft UI Automation for Windows accessibility, with editor-owned semantic snapshots, stable COM providers, queued UI-thread actions, and per-provider disconnection. Retained accessibility objects remain safe after editor teardown and across independent plugin modules. -
#321
b7dbe5fThanks @dm-balakin! - Breaking (processor ABI 2): the Rust audio processor can read persistent state. A state field declared withaudio: truekeeps its usual persistence, presets and History, and the processor also reads it asctx.stateinprepare()andprocess().ctx.stateis a generatedsoundor::StateSnapshotthat holds only theaudio: truefields, typed as declared, so reading a UI-only field fails to compile. An audio field is a number, a boolean, or an array of them with amaxLength(StateArray<T, N>, which reads as a slice).maxLengthis an array's capacity. Any array field may declare one, and every value of the field is checked against it on every write path (sets, restored projects, factory presets, History).A change reaches the next block. A block sees one snapshot from start to end, and fields written together arrive together. Reading takes no lock, allocates nothing and copies nothing. Natively, the engine's
processor::AudioState(a triple buffer thatPersistentState::audioState()owns) hands snapshots to the audio thread. In the browser, the page posts each snapshot to the AudioWorklet (ProcessorNode.setState()), which writes it into the module between render quanta.The processor ABI is now version 2:
SoundorPrepareandSoundorBlockcarry the state, andSoundorProcessorInfoandRustContractits size. Rebuild a plugin's processor with this SDK.TestProcessor::state_mut()sets the state in tests. -
#306
84678d1Thanks @dm-balakin! - Renamesoundor:state-historytosoundor:history, itsstateHistoryexport tohistory, and itsStateHistoryinterface toHistory. Rename the React hook touseHistoryand the generated JUCE processor member tohistory. Update imports, hook calls, and native member access to the new names. -
#325
ec9f9e7Thanks @dm-balakin! - A plugin'ssoundor:nativemethods can be Rust: the crate's controller, on the control thread beside the UI, typed by soundor.config, with async tasks that schedule back onto it.soundor(the Rust SDK): breaking, the processor traitAudioProcessoris nowProcessor(impl Processor for PluginProcessor); its lifecycle is unchanged. New:Controller(type Local,type Shared: two stores Soundor owns per plugin instance), the generatedNativeMethodstrait (every configured method required, with its types, sync or async as declared; a config without methods needs noimpl),TaskContext(the stores, typedparamsandstate,history,presets, the processor's resources; neitherSendnor kept past its call),AsyncTaskContext(owned andSend: the shared store, the resources, andschedule(), lazy, cancelled when dropped while queued, never interrupted once running),soundor::unblock(),soundor::Error,soundor::types(the config's native types), andsoundor::testing::TestControllerwithTestHost.soundor::export!(PluginProcessor, PluginController)exports a controller with the processor;soundor::export!(PluginProcessor)still exports a processor alone.soundor initscaffoldslib/src/controller.rswhen the config declares methods, and names the processorPluginProcessor.@soundor/core:describeController(), the controller descriptor both the Rust SDK and the runtime's generated code hold.@soundor/engine:soundor/processor/RustController.h(processor::RustController,ControllerServices,ControllerContract) andRustControllerAbi.h, the bridge to a controller's C ABI, and genericsoundor:nativebindings (js/RustMethods.h) that check and convert values as the generated C++ bindings do, settle async methods' promises when the controller is pumped and run the context's microtasks after.RustProcessor::nativeHandle().@soundor/juce-runtime: the generated processor creates the Rust controller with the plugin instance (rustController()), backs it with the parameter editors, state store, History and presets, pumps it on the message thread through anAsyncUpdater, and shuts it down first; every editor installs its methods (native::installController()), ahead ofcreateNativeApi().SoundorNative.hholds the controller descriptor.
-
#311
5135f82Thanks @dm-balakin! - Add the native Linux AT-SPI foundation using private GDBus connections and dynamically linked system GIO. The existing Linux backend remains selected until the adapter is complete. -
#344
49d772dThanks @dm-balakin! - Add the opt-inwillChange: 'transform'style. The web renderer forwards the hint to CSS. The native renderer can reuse a cached subtree when only that view's transform changes.
Patch Changes
-
#301
523daccThanks @dm-balakin! - Clean up lint warnings and update callback references after React commits, keeping installed listeners stable. -
#341
055652bThanks @dm-balakin! - Move Apple accessibility class registration into the prebuilt engine and remove the per-plugin Objective-C++ shim and Apple module pinning. Invalidate retained macOS accessibility elements and custom actions during teardown. Registered classes persist without explicit disposal; physical plugin unloading remains a documented safety risk. -
#311
78110fdThanks @dm-balakin! - Propagate dynamically linked system GIO through prebuilt imports, document native Linux accessibility, and add a Rust static-library/JUCE plugin link and loading regression check. -
#342
51ebf5eThanks @dm-balakin! - Read macOS input directly through an AppKit child view in the prebuilt engine, including fractional two-axis trackpad scrolling, native momentum, keyboard and committed IME text. Reuse accessibility's randomized Objective-C class isolation and lifetime policy, and detach native input safely when an editor closes. -
#343
e7235c9Thanks @dm-balakin! - Read Windows editor input directly from Win32, preserving fractional horizontal and vertical scrolling, native capture and focus, layout-aware keys and Unicode/IME text through the shared input system. -
#316
4538468Thanks @dm-balakin! - Remove the unused accessibility adapter and its dependency acquisition, Rust runtime linkage, notices, CI tasks, and prebuilt metadata. All desktop platforms now use native accessibility APIs. Independent Rust audio processors remain supported. -
#331
f28464cThanks @dm-balakin! - Breaking: the plugin's Rust processor and controller library now lives inlib/. Renamenative/tolib/, update Cargo manifest paths in scripts and tooling, and runsoundor gen. Legacy and ambiguous layouts produce a migration error without changing user files.Runtime authors must use
ctx.lib,LibraryBuildContext,LibraryBuildRequest, andLibraryArtifactin place of the Rust crate's native-named context and types. Cargo options, processor/controller ABI, and the publicsoundor:nativemethods/events API are unchanged. Both JUCE and Web compile the same library for their targets. -
#344
49d772dThanks @dm-balakin! - Keep web scroll indicators within the content bounds so rounded browser scroll offsets cannot extend the scrollable area.