Soundor
Engine

Engine 0.8.0 Contains breaking changes

Release notes for Engine 0.8.0.

All Engine releases

18 changes — 13 features, 4 fixes, 1 breaking change

Minor Changes

  • #254 0ada0c5 Thanks @dm-balakin! - Box shadows: Style::boxShadow, a list of BoxShadow { offsetX, offsetY, blur, spread, color, inset } read from style.boxShadow (each field optional and checked, a TypeError naming its path), drawn as CSS draws box-shadow: the first on top, outer ones outside the border box before the background, inset ones inside the padding box over it, blurred by Skia's Gaussian mask (sigma half the blur). What a node draws outside its box is now Style::inkOverflow(), per edge, for its outline and its outer shadows, and damage, promoted-canvas layers and animation groups count that far around it. Shadows are not laid out, not hit and not animated; node.style compares them by value, as it does transform, and the DevTools inspector shows them.

  • #252 3275981 Thanks @dm-balakin! - Double clicks: a click's detail says which of a series it is, and the second click of a series is followed by a dblclick (Event::Type::DoubleClick) to the same node. The platform counts the presses: PointerInput::clicks on the first button's down, which the click carries as Event::detail. Every pointer event has detail in soundor:ui (0 but for click and dblclick). The DevTools Input.dispatchPointer command takes a clickCount for down and click, so synthetic input says its count rather than depending on timing.

  • #289 a54e1da Thanks @dm-balakin! - Expose plugin version and runtime environment in soundor:host, and extend host state with processing mode, sample precision, optional track metadata, loop boundaries and timecode. Rename snapshot/subscribe to getHostState/subscribeHostState. Configure plugin.version (default 0.1.0) consistently across formats.

  • #262 b35730c Thanks @dm-balakin! - Enable Linux GPU composition and Skia Ganesh rendering through an input-transparent X11 child window and ANGLE Vulkan. X11/XCB libraries load at runtime, preserving CPU fallback and headless loading. XWayland is supported when the host supplies an X11 editor window.

  • #260 9e809c3 Thanks @dm-balakin! - Render retained UI and Canvas 2D with Skia Ganesh on macOS through the existing ANGLE Metal device. Share rendered textures with the compositor and fall back to CPU drawing when GPU drawing is unavailable.

  • #266 496fe62 Thanks @dm-balakin! - Accept synchronous functional updaters on parameter and persistent state fields. Resolve once against the latest immutable store value, validate before publishing, and reject asynchronous results. Automatically bracket changed automatable parameter writes in a host gesture when no explicit gesture is active, preserving nested gestures and keeping state gestures explicit.

    Raise the runtime API version to 4 for the compatible setter addition; older runtime API versions remain supported.

  • #282 79a9ce5 Thanks @dm-balakin! - RuntimeHost::Options::dispatchModules: a backend's own modules (state, History) deliver what they queued for JavaScript from inside tick(), right after the parameter changes, under the tick's one time limit, timed as TickStatistics::modules, and in every runtime a dev reload creates.

  • #281 0354f73 Thanks @dm-balakin! - Latest-value channels (soundor/js/Channels.h): js::ValueChannel<T> and js::BufferChannel<T> carry a number, or a buffer of up to maxLength numbers, from one producer thread to the UI. Publishing (publish(), or a buffer's buffer() then commit(), in place) takes no lock, never allocates and never waits, so the audio callback can publish: a triple buffer hands whole values over with one atomic exchange, and the UI never reads a partly written one. RuntimeHost::tick() delivers the newest value of each connected channel (js::deliverChannels()), skipping the ones in between, so a slow, hidden or closed UI accumulates nothing; a context connected later starts with the value published last. TickStatistics::channels times it, Channel::statistics() counts what was published and taken, and soundor_channel_benchmark measures it. Bindings connect channels with bind::connectChannels() and export them with bind::installChannels().

  • #280 27a3303 Thanks @dm-balakin! - js::EventSource (soundor/js/Events.h) delivers native events from any thread to the JavaScript contexts connected to it: publishing queues a value for each, under a short lock, without running or waiting for JavaScript, and RuntimeHost::tick() delivers them (js::deliverEvents()) on the context's thread, in the order published. Each context holds at most Options::capacity (1024) undelivered events, drops newer ones and logs how many; with no context connected, an event is dropped; either side may go first. TickStatistics::events times the delivery. Bindings connect a source with bind::connectEvents(), export its subscribable events with bind::installEvents() and call them with bind::dispatchEvent().

  • #255 13da21d Thanks @dm-balakin! - Breaking: native handles are gone: bind::HandleType, readHandle(), writeHandle() and the release queue behind them. The bindings convert every sized number exactly: read()/write() of std::int8_t … std::uint64_t and float (integers of up to 32 bits from integral numbers in range, 64-bit ones from bigints through JSI's BigInt, floats rounded to nearest), a TypeError for the wrong kind of value and a RangeError (256 is out of range for uint8 (0 to 255)) beyond the range. Typed arrays of every element type read as spans and write from vectors (Int8Array … BigUint64Array), readBuffer()/writeBuffer() copy one into a struct field and back, and readNullable()/writeNullable() map null to std::optional.

  • #258 553d8c4 Thanks @dm-balakin! - Parameters: parameters::Info carries the declared type, access, step and choice options, and parameters::Host converts as the plugin does (constrain, toNormalized, fromNormalized, format, parse). soundor:parameters exposes them to JavaScript, and a write to a read-only parameter throws a TypeError.

  • #288 02d06a8 Thanks @dm-balakin! - Add boolean soundor:ui isVisible()/subscribeVisibility() and isFocused()/subscribeFocus() APIs so plugins can react to editor visibility and keyboard focus across runtimes. Add test runtime setters and Testing Library editor helpers. The analyzer example pauses its UI subscriptions while hidden.

  • #267 553076d Thanks @dm-balakin! - Add processor-owned StateHistory with opt-in discrete edits, History-enabled parameter/state gestures, synchronous buffered transactions, undo/redo, subscriptions, and useStateHistory(). JavaScript and native C++ share one manager in JUCE; Web and simulated runtimes implement the same contract. History survives editor recreation and clears on project restoration. Runtime API 5 is now required so older runtimes cannot silently ignore History options.

  • #257 87ce3c9 Thanks @dm-balakin! - Render retained UI and Canvas 2D with Skia Ganesh through the existing ANGLE device on Windows. Keep layer damage and animation caches on the GPU, share canvas textures with the compositor, and retain CPU rendering when GPU drawing is unavailable. Pixel APIs preserve their existing semantics; a GPU reset clears GPU Canvas 2D contents and resets drawing state.

Patch Changes

  • #286 6b97261 Thanks @dm-balakin! - Provide the public GPU compositor factories in no-GPU builds. They return null with a diagnostic so consumers, including the JUCE plugin editor, link successfully and select CPU rendering.

  • #286 6b97261 Thanks @dm-balakin! - Keep Skia's system libraries after the ANGLE/Skia archives when linking a prebuilt engine. Fixes unresolved fontconfig and FreeType symbols with GCC and GNU ld in JUCE integration consumers.

  • #269 8e94ab3 Thanks @dm-balakin! - soundor_run_ui reports the process's resident memory: at startup (with the engine's heap, in the startup record and on stderr) and per frame's largest sample (rssBytesMax per phase) — the floor a plugin editor gets with nothing of its own in it, for the benchmark's memory work.

  • #284 79ccdf6 Thanks @dm-balakin! - Bundle the JavaScript lowering tool's runtime dependencies and capture their build-time identity, so fresh installs of a published engine keep selecting its prebuilts even after Babel releases new versions. Workspace builds still track installed lowering dependencies.

On this page