timbre 0.3.0

A library for audio processing with composable effects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::core::AudioFormat;

use sdl2::audio::AudioSpec;

impl From<AudioSpec> for AudioFormat {
    fn from(spec: AudioSpec) -> Self {
        AudioFormat {
            channels: spec.channels,
            sample_rate: spec.freq as u32,
        }
    }
}