MCPcopy Create free account
hub / github.com/RustAudio/rodio / FixedSource

Interface FixedSource

src/fixed_source.rs:10–19  ·  view source on GitHub ↗

Similar to `Source`, something that can produce interleaved samples for a fixed amount of channels at a fixed sample rate. Those parameters never change.

Source from the content-addressed store, hash-verified

8/// fixed amount of channels at a fixed sample rate. Those parameters never
9/// change.
10pub trait FixedSource: Iterator<Item = Sample> {
11 /// May NEVER return something else once its returned a value
12 fn channels(&self) -> ChannelCount;
13 /// May NEVER return something else once its returned a value
14 fn sample_rate(&self) -> SampleRate;
15 /// Returns the total duration of this source, if known.
16 ///
17 /// `None` indicates at the same time "infinite" or "unknown".
18 fn total_duration(&self) -> Option<Duration>;
19}

Callers

nothing calls this directly

Implementers 1

microphone.rssrc/microphone.rs

Calls

no outgoing calls

Tested by

no test coverage detected