Trait cubeb::Sample
[−]
[src]
pub trait Sample: Send + Copy { fn from_float(_: f32) -> Self; }
An extension trait which allows the implementation of converting void* buffers from libcubeb-sys into rust slices of the appropriate type.
Required Methods
fn from_float(_: f32) -> Self
Map f32 in range [-1,1] to sample type