pub trait Sample: Send + Copy {
// Required method
fn from_float(_: f32) -> Self;
}
Expand description
An extension trait which allows the implementation of converting void* buffers from libcubeb-sys into rust slices of the appropriate type.
Required Methods§
sourcefn from_float(_: f32) -> Self
fn from_float(_: f32) -> Self
Map f32 in range [-1,1] to sample type
Object Safety§
This trait is not object safe.