Skip to content

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:49
· 68 commits to main since this release

Added

  • Chain::canceller returns a ChainCanceller whose cancel terminates the chain's helper from
    any thread, which ends a call the chain is blocked in, such as a plugin that does not return
    from restoring state, loading a preset, opening its editor, preparing again or processing a
    block. That call, or the next one if none is blocked, returns the new Error::Cancelled
    (FailureKind::Cancelled) with the slot the helper was calling, and later calls return
    Error::Crashed as after a timeout.
  • HelperMonitor::end_reason tells why a helper ended once its exit is observed: it crashed or
    exited on its own, plughost terminated it after a timeout, a protocol error or a cancellation,
    or its chain shut it down. The errors after the first one report Error::Crashed whatever the
    reason was.
  • Rendered::non_finite_samples and RenderProgress::non_finite_samples count the NaN and
    infinite samples a render delivered, over all channels and excluding the removed latency;
    a render session reports them per push and finish. Rendering still neither rejects nor
    replaces them, and they still count as sound for TailPolicy::UntilSilence, so a plugin that
    keeps producing NaN renders up to the maximum tail.

Changed

  • The load timeout bounds each plugin of a chain rather than the whole chain: loading a chain,
    and preparing an already configured chain again, renew it after each plugin they load or
    prepare, also in recover and recover_realtime. A chain of instruments that each load
    within the timeout no longer times out together.
  • A panic in the helper aborts it, so the application reports a crash of the slot the helper
    was calling. A panic on its processing thread made the request it served time out without
    naming a slot before.
  • RenderSession reuses its render buffers from one push to the next instead of allocating
    and zero-filling block buffers and event storage for every segment, and trims the latency
    without copying each delivery's channel list. Output and progress are unchanged.
  • The internal helper protocol is now 31. Applications and helpers with different protocol
    versions fail the handshake; rebuild and distribute the helper with the application.

Fixed

  • A VST3 editor whose view reports a size with coordinates far apart no longer panics the
    helper when it computes the window size.
  • A scan no longer forgets the bundles of a scanned directory that is missing, such as one on a
    disconnected volume, so they are cache hits again when it returns instead of loading again,
    and a bundle that crashed stays excluded. Bundles removed from a directory that exists are
    still forgotten, except that an entry with failures keeps its count and exclusion until a
    retry, and a link to a bundle or folder on a disconnected volume keeps its entries. A retry no
    longer drops the entries of other removed bundles.
  • In a prepared chain, restore_state, presets, factory presets and reprepare_slot fail with
    FailureKind::Configuration and keep the active slot when the fresh instance has other active
    audio buses or event ports than the slot was prepared with; reprepare routes them. The slot
    was replaced before, and processing went on routing by the replaced instance's native ports.
  • A reset that fails at one slot after earlier slots were reset leaves the chain to be prepared
    again: blocks fail with FailureKind::NotPrepared. They went on with alignment delays that no
    longer matched the reset slots.
  • A parameter edit or reset that took effect succeeds when the chain's timing cannot be read or
    planned afterwards; the chain keeps its last latency and tail, and the diagnostics record the
    failure. It failed with that error before, as if the edit had not been made.
  • Transport::advanced no longer fails with InputError::Transport for a beat a few ulps
    below a bar line, where rounding placed the computed bar start after the beat; the beat now
    stays in the earlier bar. A scheduled render or session segment whose blocks reached such a
    beat failed partway through after the schedule had been accepted, and a session segment that
    stopped at one, by cancellation or at the end of a silent tail, returned the error while the
    session stayed Active.
  • A CLAP plugin's output event whose header gives another size than its type's is counted in
    diagnostics as an event with no portable form. It was read as its type, past the end of an
    event the plugin declared shorter, and became a note or a parameter notification.
  • VST3 and CLAP output system exclusive data is copied only once the size the plugin declares
    fits what is left of the block's budget; a larger one fails the block as more output than a
    block allows, before anything is read. It was copied at the declared size on the processing
    thread first, so a size past the plugin's buffer crashed the helper.
  • The counts a CLAP plugin reports are bounded before they are followed. A plugin's first 65,536
    parameters are read, with a PluginMisbehaving diagnostic when it reports more;
    audio_configurations fails with the audio metadata error for more than 1,024 configurations
    or more than MAX_AUDIO_BUSES ports in a direction of one, as audio_buses does for the active
    ports; and capabilities are Support::Unknown where more note ports (beyond 65,535), audio ports
    or parameters would have to be looked at. A plugin reporting billions made the helper allocate
    without bound or run until the control timeout.
  • Parameter values and ranges that parameters and parameter_details read follow one rule in
    every format: a value outside its range is clamped into it, and one that is not finite, or
    whose range is not, reads as 0. A CLAP parameter whose range is not finite has no default, and set_parameter
    and automation of a CLAP or Audio Unit parameter with such a range fail with the format's
    parameter result error (FailureKind::Host). parameters reported such values as NaN or
    outside 0 to 1, and edits sent NaN to the plugin.
  • Text an Audio Unit gives (parameter, group, bus, MIDI output and preset names, parameter units,
    value text and error descriptions) is converted with U+FFFD in place of what is not valid
    UTF-16, such as an unpaired surrogate, as component names already were. Such text aborted the
    helper in debug builds and was undefined behaviour in release builds.
  • A CLAP plugin that registers or unregisters a timer off the main thread is refused, with a
    PluginMisbehaving diagnostic. The host's timer list, which only the main thread may use, was
    changed from that thread.
  • Host edits of a CLAP plugin's parameters stay queued until a block the plugin processes has
    delivered them. A block the plugin failed took them, so the plugin kept the old values.
  • A CLAP plugin's output notes with IDs end with the note choke or note end that names them, as
    with a note off. They stayed among the 4,096 notes the host follows, and once those were taken,
    a later note's expressions naming it by ID alone counted as events with no portable form.