rodio/
common.rs

1/// Stream sample rate (a frame rate or samples per second per channel).
2pub type SampleRate = u32;
3
4/// Number of channels in a stream.
5pub type ChannelCount = u16;
6
7/// Represents value of a single sample.
8/// Silence corresponds to the value `0.0`. The expected amplitude range is  -1.0...1.0.
9/// Values below and above this range are clipped in conversion to other sample types.
10/// Use conversion traits from [dasp_sample] crate or [crate::conversions::SampleTypeConverter]
11/// to convert between sample types if necessary.
12pub type Sample = f32;