Module rodio::static_buffer
source · 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;
let _ = StaticSamplesBuffer::new(1, 44100, &[1i16, 2, 3, 4, 5, 6]);
Structs
- A buffer of samples treated as a source.