EarInAudioFrame

Trait EarInAudioFrame 

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

A trait for controllers generating audio pulses from the EAR input.

Required Methods§

Source

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

Renders EAR input as square-wave pulses via Blep interface.

Provide AmpLevels that can handle level values from 0 to 1 (1-bit). channel - target Blep audio channel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§