Similar to `Source`, something that can produce interleaved samples for a fixed amount of channels at a fixed sample rate. Those parameters never change.
| 8 | /// fixed amount of channels at a fixed sample rate. Those parameters never |
| 9 | /// change. |
| 10 | pub 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected