pub fn read_audio_channel(&self, name: &str, output: &mut [f64]) {
        let ksmps = self.get_ksmps() as usize;
        let size = output.len();
        let cname = CString::new(name).unwrap();
        assert!(
            ksmps <= size,
            "The audio channel's capacity is {} so, it isn't possible to copy {} samples",
            ksmps,
            size
        );
        unsafe {
            csound_sys::csoundGetAudioChannel(
                self.engine.csound,
                cname.as_ptr(),
                output.as_ptr() as *mut c_double,
            );
        }
    }
/// Copies samples from an audio channel.
/// # Arguments
/// * `name` The channel name.
/// * `out` The slice where the date contained in the internal audio channel buffer
/// will be copied. Should contain enough memory for ksmps f64 samples.
/// # Panic
/// If the buffer passed to this function doesn't have enough memory.
Copies samples from an audio channel.
Copies samples from an audio channel .
pub fn read_audio_channel(&self, name: &str, output: &mut [f64]) {
        let ksmps = self.get_ksmps() as usize;
        let size = output.len();
        let cname = CString::new(name).unwrap();
        assert!(
            ksmps <= size,
            "The audio channel's capacity is {} so, it isn't possible to copy {} samples",
            ksmps,
            size
        );
        unsafe {
            csound_sys::csoundGetAudioChannel(
                self.engine.csound,
                cname.as_ptr(),
                output.as_ptr() as *mut c_double,
            );
        }
    }
pub fn read_audio_channel ( & self , name : & str , output : & mut [ f64 ] ) { let ksmps = self . get_ksmps ( ) as usize ; let size = output . len ( ) ; let cname = CString :: new ( name ) . unwrap ( ) ; assert ! ( ksmps size " " ksmps size ) ; unsafe { csound_sys :: csoundGetAudioChannel ( self . engine . csound , cname . as_ptr ( ) , output . as_ptr ( ) as * mut c_double , ) ; } }
Copies samples from an audio channel.
Copies samples from an audio channel .
&self
name
&str
output
&mut [f64]
&self
name
&str
output
&mut [f64]
panic
If the buffer passed to this function doesn't have enough memory.
If the buffer passed to this function doesn ' t have enough memory .