INNER CODE UNIT · Rust

new

RustAudio/cpal · src/lib.rs:544

    pub fn new(
        channels: ChannelCount,
        sample_rate: SampleRate,
        buffer_size: SupportedBufferSize,
        sample_format: SampleFormat,
    ) -> Self {
        Self {
            channels,
            sample_rate,
            buffer_size,
            sample_format,
        }
    }

    pub fn channels(&self) -> ChannelCount {
        self.channels
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…