/// Return all [`AudioUnit`] component information
Return all [`AudioUnit`] component information
Return all [ ` AudioUnit ` ] component information
pub fn all_components(&self) -> Vec<AVAudioUnitComponent> {
        let mut result = vec![];
        unsafe {
            // NSPredicate
            let predicate: id = msg_send![class!(NSPredicate), predicateWithValue: YES];
            // NSArray
            let components_array: id =
                msg_send![self.reference, componentsMatchingPredicate: predicate];
            let count = msg_send![components_array, count];
            for i in 0..count {
                let item: id = msg_send![components_array, objectAtIndex: i];
                let unit = AVAudioUnitComponent::new(item);
                result.push(unit);
            }
        }
        result
    }
pub fn all_components ( & self ) -> Vec < AVAudioUnitComponent > { let mut result = vec ! [ ] ; unsafe { // NSPredicate let predicate : id = msg_send ! [ class ( NSPredicate ) predicateWithValue YES ] ; // NSArray let components_array : id = msg_send ! [ self reference componentsMatchingPredicate predicate ] ; let count = msg_send ! [ components_array count ] ; for i in 0 .. count { let item : id = msg_send ! [ components_array objectAtIndex i ] ; let unit = AVAudioUnitComponent :: new ( item ) ; result . push ( unit ) ; } } result }
Return all [`AudioUnit`] component information
Return all [ ` AudioUnit ` ] component information
&self