pub trait AyAudioBusDevice: BusDevice {
    fn render_ay_audio<L, B>(
        &mut self,
        blep: &mut B,
        end_ts: Self::Timestamp,
        frame_tstates: i32,
        chans: [usize; 3]
    )
    where
        L: AmpLevels<<B as Blep>::SampleDelta>,
        B: Blep
; }
Expand description

This trait is being used by AyAudioFrame implementations to render AY-3-8910 audio with bus devices.

Allows for rendering audio frame using AyAudioFrame directly on the ControlUnit without the need to “locate” the Ay3_891xBusDevice in the daisy chain.

This trait is implemented autmatically for all BusDevices which implement PassByAyAudioBusDevice.

Required Methods§

Renders square-wave pulses via Blep interface.

Provide AmpLevels that can handle level values from 0 to 15 (4-bits). channels - target Blep audio channels for [A, B, C] AY-3-8910 channels.

Implementations on Foreign Types§

Implementors§