Module 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, &[1.0, 2.0, 3.0, 4.0, 5.0, 6.0]);

Structs§

StaticSamplesBuffer
A buffer of samples treated as a source.