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

Map f32 in range [-1,1] to sample type

Implementations on Foreign Types

impl Sample for i16
[src]

impl Sample for f32
[src]

Implementors