[][src]Trait csound::InputChannelPtr

pub trait InputChannelPtr<T: ?Sized> {
    fn write(&self, inp: T);
}

Tait with the write function which is implemented by control, audio and string channels

Required methods

fn write(&self, inp: T)

Loading content...

Implementors

impl<'a> InputChannelPtr<f64> for ChannelPtr<'a, ControlChannel, Writable>[src]

fn write(&self, inp: f64)[src]

Writes data to csound's control channel

impl<'a, '_> InputChannelPtr<&'_ [f64]> for ChannelPtr<'a, AudioChannel, Writable>[src]

fn write(&self, inp: &[f64])[src]

Writes audio data to an audio channel

Arguments

A slice of ksmps audio samples to be copied into the channel's buffer If this slice is onger than the channel's buffer, only Channel's size elments would be copied from it

impl<'a, '_> InputChannelPtr<&'_ [u8]> for ChannelPtr<'a, StrChannel, Writable>[src]

fn write(&self, inp: &[u8])[src]

Writes bytes to a string channel's buffer

Arguments

A slice of bytes to be copied into the channel's buffer If this slice is longer than the channel's buffer, only Channel's size elements would be copied from it

Loading content...