Trait spectrusty::peripherals::bus::ay::AyAudioBusDevice
source · 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.