/// Behaves the same way as [`Csound::compile_csd`](struct.Csound.html#method.compile_csd),
/// except that the content of the CSD is read from a string rather than from a file.
/// This is convenient when it is desirable to package the csd as part of an application or a multi-language piece.
/// # Arguments
/// * `csd_text` A reference to the text to be compiled by csound
Behaves the same way as [`Csound::compile_csd`](struct.Csound.html#method.compile_csd),
except that the content of the CSD is read from a string rather than from a file.
This is convenient when it is desirable to package the csd as part of an application or a multi-language piece.
Behaves the same way as [ ` Csound :: compile_csd ` ] ( struct . Csound . html#method . compile_csd ) except that the content of the CSD is read from a string rather than from a file . This is convenient when it is desirable to package the csd as part of an application or a multi - language piece .
pub fn compile_csd_text<T>(&self, csdText: T) -> Result<(), &'static str>
    where
        T: AsRef<str>,
    {
        let path = Trampoline::convert_str_to_c(csdText)?;
        unsafe {
            match csound_sys::csoundCompileCsdText(self.engine.csound, path.as_ptr()) {
                CSOUND_STATUS::CSOUND_SUCCESS => Ok(()),
                _ => Err("Can't compile the csd file"),
            }
        }
    }
pub fn compile_csd_text < T > ( & self , csdText : T ) -> Result < ( ) , & ' static str > where T : AsRef < str > , { let path = Trampoline :: convert_str_to_c ( csdText ) ? ; unsafe { match csound_sys :: csoundCompileCsdText ( self . engine . csound , path . as_ptr ( ) ) { CSOUND_STATUS :: CSOUND_SUCCESS => Ok ( ( ) ) , _ => Err ( " " ) , } } }
Behaves the same way as [`Csound::compile_csd`](struct.Csound.html#method.compile_csd),
except that the content of the CSD is read from a string rather than from a file.
Behaves the same way as [ ` Csound :: compile_csd ` ] ( struct . Csound . html#method . compile_csd ) except that the content of the CSD is read from a string rather than from a file .
&self
csdText
T