Skip to main content

EarMicOutAudioFrame

Trait EarMicOutAudioFrame 

Source
pub trait EarMicOutAudioFrame<B: Blep> {
    // Required method
    fn render_earmic_out_audio_frame<V: AmpLevels<B::SampleDelta>>(
        &self,
        blep: &mut B,
        channel: usize,
    );
}
Expand description

A trait for controllers generating audio pulses from the EAR/MIC output.

Required Methods§

Source

fn render_earmic_out_audio_frame<V: AmpLevels<B::SampleDelta>>( &self, blep: &mut B, channel: usize, )

Renders EAR/MIC output as square-wave pulses via Blep interface.

Provide AmpLevels that can handle level values from 0 to 3 (2-bits).

  EAR  MIC  level
   0    0     0
   0    1     1
   1    0     2
   1    1     3

channel - target Blep audio channel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§