retro_audio_sample_t

Type Alias retro_audio_sample_t 

Source
pub type retro_audio_sample_t = Option<unsafe extern "C" fn(left: i16, right: i16)>;
Expand description

Renders a single audio frame. Should only be used if implementation generates a single sample at a time. Format is signed 16-bit native endian.

Aliased Type§

pub enum retro_audio_sample_t {
    None,
    Some(unsafe extern "C" fn(i16, i16)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i16, i16))

Some value of type T.