[−][src]Struct csound::ChannelPtr
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]
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]
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]
impl<'a> Deref for ChannelPtr<'a, ControlChannel, Writable>
[src]
impl<'a> Deref for ChannelPtr<'a, AudioChannel, Readable>
[src]
impl<'a> Deref for ChannelPtr<'a, AudioChannel, Writable>
[src]
impl<'a> Deref for ChannelPtr<'a, StrChannel, Readable>
[src]
impl<'a> Deref for ChannelPtr<'a, StrChannel, Writable>
[src]
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,
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,
C: UnwindSafe,
T: RefUnwindSafe,
impl<'a, C, T> RefUnwindSafe for ChannelPtr<'a, C, T> where
C: RefUnwindSafe,
T: RefUnwindSafe,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,