Instance Method

components(matching:)

An array of audio component objects that matches 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

An audio component's information or tags can be used to build search criteria. For example, "typeName CONTAINS 'Effect'" or "tags IN {'Sampler', 'MIDI'}".

See Also

Getting Matching Audio Components