[][src]Trait spectrusty::peripherals::ay::audio::AyAudioFrame

pub trait AyAudioFrame<B> where
    B: Blep
{ pub fn render_ay_audio_frame<V>(
        &mut self,
        blep: &mut B,
        channels: [usize; 3]
    )
    where
        V: AmpLevels<<B as Blep>::SampleDelta>
; }

A trait for interfacing controllers to render square-wave audio pulses from an AY-3-891x emulator.

Required methods

pub fn render_ay_audio_frame<V>(&mut self, blep: &mut B, channels: [usize; 3]) where
    V: AmpLevels<<B as Blep>::SampleDelta>, 
[src]

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-891x channels.

Loading content...

Implementors

impl<A, M, B, X, V> AyAudioFrame<A> for Scld<M, B, X, V> where
    A: Blep,
    M: PagedMemory8k,
    B: AyAudioBusDevice + BusDevice,
    B::Timestamp: From<VFrameTs<V>>,
    V: VideoFrame
[src]

impl<A, U> AyAudioFrame<A> for UlaPlus<U> where
    A: Blep,
    U: Video + AyAudioFrame<A>, 
[src]

impl<B, D, X> AyAudioFrame<B> for Ula3<D, X> where
    B: Blep,
    D: AyAudioBusDevice + BusDevice,
    D::Timestamp: From<VFrameTs<Ula3VidFrame>>, 
[src]

impl<B, D, X> AyAudioFrame<B> for Ula128<D, X> where
    B: Blep,
    D: AyAudioBusDevice + BusDevice,
    D::Timestamp: From<VFrameTs<Ula128VidFrame>>, 
[src]

impl<B, M, D, X, V> AyAudioFrame<B> for Ula<M, D, X, V> where
    B: Blep,
    D: AyAudioBusDevice + BusDevice,
    D::Timestamp: From<VFrameTs<V>>,
    V: VideoFrame
[src]

impl<P, A> AyAudioFrame<A> for AyPlayer<P> where
    A: Blep
[src]

Loading content...