[][src]Struct csound::ChannelPtr

pub struct ChannelPtr<'a, C, T> { /* fields omitted */ }

Struct represents a csound channel object.

in a more accurate way than ControlChannelPtr use this struct instead. Also, this struct implements traits to read/write audio, control and string channels.

Trait Implementations

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

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

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

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

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

impl<'a> AsRef<[f64]> for ChannelPtr<'a, AudioChannel, Writable>[src]

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

impl<'a> AsRef<[u8]> for ChannelPtr<'a, StrChannel, Writable>[src]

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

impl<'a> AsMut<[f64]> for ChannelPtr<'a, AudioChannel, Writable>[src]

impl<'a> AsMut<[u8]> for ChannelPtr<'a, StrChannel, Writable>[src]

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

type Target = f64

The resulting type after dereferencing.

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

type Target = f64

The resulting type after dereferencing.

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

type Target = [f64]

The resulting type after dereferencing.

impl<'a> Deref for ChannelPtr<'a, AudioChannel, Writable>[src]

type Target = [f64]

The resulting type after dereferencing.

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

type Target = [u8]

The resulting type after dereferencing.

impl<'a> Deref for ChannelPtr<'a, StrChannel, Writable>[src]

type Target = [u8]

The resulting type after dereferencing.

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

impl<'a> DerefMut for ChannelPtr<'a, AudioChannel, Writable>[src]

impl<'a> DerefMut for ChannelPtr<'a, StrChannel, Writable>[src]

impl<'a, C: Debug, T: Debug> Debug for ChannelPtr<'a, C, T>[src]

Auto Trait Implementations

impl<'a, C, T> Unpin for ChannelPtr<'a, C, T> where
    C: Unpin

impl<'a, C, T> !Sync for ChannelPtr<'a, C, T>

impl<'a, C, T> !Send for ChannelPtr<'a, C, T>

impl<'a, C, T> UnwindSafe for ChannelPtr<'a, C, T> where
    C: UnwindSafe,
    T: RefUnwindSafe

impl<'a, C, T> RefUnwindSafe for ChannelPtr<'a, C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]