Skip to content

feat: Support sample rates other than 48kHz #7

@Detair

Description

@Detair

Description

The VoidProcessor and plugins are hardcoded to 48kHz (SAMPLE_RATE constant in crates/core/src/constants.rs). In crates/plugin/src/lib.rs line 199-203, a warning is logged if the host uses a different sample rate, but processing continues incorrectly.

Impact

Audio artifacts and incorrect pitch if the DAW uses 44.1kHz or 96kHz.

Suggested Fix

Either:

  1. Implement resampling at plugin boundaries.
  2. Reject hosts with incompatible sample rates during initialize() by returning false.
  3. Make SAMPLE_RATE configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions