retro_audio_sample_batch_t

Type Alias retro_audio_sample_batch_t 

Source
pub type retro_audio_sample_batch_t = Option<unsafe extern "C" fn(data: *const i16, frames: usize) -> usize>;
Expand description

Renders multiple audio frames in one go.

One frame is defined as a sample of left and right channels, interleaved. I.e. int16_t buf[4] = { l, r, l, r }; would be 2 frames. Only one of the audio callbacks must ever be used.

Aliased Type§

pub enum retro_audio_sample_batch_t {
    None,
    Some(unsafe extern "C" fn(*const i16, usize) -> usize),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const i16, usize) -> usize)

Some value of type T.