Expand description
A simple source of samples coming from a static buffer.
The StaticSamplesBuffer struct can be used to treat a list of values as a Source.
§Example
use rodio::static_buffer::StaticSamplesBuffer;
use core::num::NonZero;
let _ = StaticSamplesBuffer::new(NonZero::new(1).unwrap(), NonZero::new(44100).unwrap(), &[1.0, 2.0, 3.0, 4.0, 5.0, 6.0]);Structs§
- Static
Samples Buffer - A buffer of samples treated as a source.