Struct rust_libretro::contexts::AudioContext
source · [−]pub struct AudioContext<'a> { /* private fields */ }Implementations
Renders multiple audio frames in one go if [CoreWrapper::audio_sample_batch_callback] has been set.
One frame is defined as a sample of left and right channels, interleaved.
I.e. let buf: [u16; 4] = [ l, r, l, r ]; would be 2 frames.
Only one of the audio callbacks must ever be used.
Renders a single audio frame if [CoreWrapper::audio_sample_callback] has been set.
Should only be used if implementation generates a single sample at a time.
Format is signed 16-bit native endian.
Only one of the audio callbacks must ever be used.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
