components(matching:)
Gets an array of audio component objects that match the search predicate.
Declaration
func components(matching predicate: NSPredicate) -> [AVAudioUnitComponent]Parameters
- predicate:
The search predicate.
Return Value
An array of AVAudioComponent objects that match the predicate.
Discussion
You use the audio component’s information or tags to build search criteria, such as “typeName CONTAINS 'Effect'" or “tags IN {'Sampler', 'MIDI'}".