Skip to main content
All audio crossing the API uses interleaved f32 samples in [-1.0, 1.0]. This object captures the two remaining degrees of freedom (sample rate and channel count) so callers can request a specific configuration when constructing sources or sinks.

Properties

number
required
Number of interleaved channels (1 = mono, 2 = stereo).
number
required
Samples per second per channel (e.g. 44100, 48000).