Module culsynth::context

source ·
Expand description

This module provides objects to reason about the processing context. Currently, the only information wrapped is the current audio sample rate.

Structs§

  • A floating point (using the type Smp) processing context
  • A fixed-point processing context. Currently this is only supported for a handful of different sample rates, as properly implementing the fixed-point arithmetic requires some assumptions about the ranges of parameters, and this library uses a few hard-coded constants to optimize fixed-point division.

Enums§

  • An enum representing all of the supported sample rates for fixed-point logic

Traits§

  • A trait to provide a generic interface to the various types of fixed/floating point contexts in this module.
  • Simple helper trait for types that can return a GenericContext