Module buffer

Source
Expand description

A simple source of samples coming from a buffer.

The SamplesBuffer struct can be used to treat a list of values as a Source.

§Example

use rodio::buffer::SamplesBuffer;
let _ = SamplesBuffer::new(1, 44100, vec![1.0, 2.0, 3.0, 4.0, 5.0, 6.0]);

Structs§

SamplesBuffer
A buffer of samples treated as a source.