pub fn initialize(flags: i32) -> Result<(), &'static str> {
        unsafe {
            match csound_sys::csoundInitialize(flags as c_int) {
                CSOUND_STATUS::CSOUND_ERROR => Err("Can't to initialize csound "),
                CSOUND_STATUS::CSOUND_SUCCESS => Ok(()),
                value => {
                    if value > 0 {
                        Err("Initialization was done already")
                    } else {
                        Err("Unknown error - can not to initialize")
                    }
                }
            }
        }
    }
/// Initializes the csound library with specific flags(see: [anchor text]()).
/// This function is called internally by Csound::new(), so there is generally no need to use it explicitly unless
/// you need to avoid default initilization that sets signal handlers and atexit() callbacks.
/// Return value is Ok() on success or an error message in case of failure
Initializes the csound library with specific flags).
This function is called internally by Csound::new(), so there is generally no need to use it explicitly unless
you need to avoid default initilization that sets signal handlers and atexit() callbacks.
Return value is Ok() on success or an error message in case of failure
Initializes the csound library with specific flags ) . This function is called internally by Csound :: new () so there is generally no need to use it explicitly unless you need to avoid default initilization that sets signal handlers and atexit () callbacks . Return value is Ok () on success or an error message in case of failure
pub fn initialize(flags: i32) -> Result<(), &'static str> {
        unsafe {
            match csound_sys::csoundInitialize(flags as c_int) {
                CSOUND_STATUS::CSOUND_ERROR => Err("Can't to initialize csound "),
                CSOUND_STATUS::CSOUND_SUCCESS => Ok(()),
                value => {
                    if value > 0 {
                        Err("Initialization was done already")
                    } else {
                        Err("Unknown error - can not to initialize")
                    }
                }
            }
        }
    }
pub fn initialize ( flags : i32 ) -> Result < ( ) , & ' static str > { unsafe { match csound_sys :: csoundInitialize ( flags as c_int ) { CSOUND_STATUS :: CSOUND_ERROR => Err ( " " ) , CSOUND_STATUS :: CSOUND_SUCCESS => Ok ( ( ) ) , value => { if value > 0 { Err ( " " ) } else { Err ( " " ) } } } } }
Initializes the csound library with specific flags(see: [anchor text]()).
Initializes the csound library with specific flags ( see : [ anchor text ] () ) .
flags
i32
flags
i32