Skip to content

Commit 06cbd4b

Browse files
committed
Add instantiate func for non realtime effects
1 parent 096ed56 commit 06cbd4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/AudioKitEX/Node+AudioKitAU.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ public func instantiate(effect code: String) -> AVAudioNode {
6363
public func instantiate(mixer code: String) -> AVAudioNode {
6464
instantiate(componentDescription: AudioComponentDescription(mixer: code))
6565
}
66+
67+
/// Create a non-realtime effect for the given unique identifier
68+
/// - Parameter code: Unique four letter identifier
69+
public func instantiate(nonRealTimeEffect code: String) -> AVAudioNode {
70+
instantiate(componentDescription: AudioComponentDescription(nonRealTimeEffect: code))
71+
}

0 commit comments

Comments
 (0)