[][src]Trait csound::OutputChannelPtr

pub trait OutputChannelPtr<'a, T: ?Sized> {
    fn read(&'a self) -> &'a T;
}

Trait with the read function which is implemented by like control, audio and string channels

Required methods

fn read(&'a self) -> &'a T

Loading content...

Implementors

impl<'a> OutputChannelPtr<'a, f64> for ChannelPtr<'a, ControlChannel, Readable>[src]

fn read(&'a self) -> &'a f64[src]

Reads data from a csound's control channel

Returns

A reference to the control channel's value

impl<'a> OutputChannelPtr<'a, [f64]> for ChannelPtr<'a, AudioChannel, Readable>[src]

fn read(&'a self) -> &[f64][src]

Reads data from a csound's Audio channel

Returns

A reference to the control channel's slice of ksmps samples

impl<'a> OutputChannelPtr<'a, [u8]> for ChannelPtr<'a, StrChannel, Readable>[src]

fn read(&'a self) -> &'a [u8][src]

Reads data from a csound's Audio channel

Returns

A reference to the string channel's slice with bytes which represents the content of a string channel

Loading content...