Skip to content

Commit

Permalink
Helper functions for start stop play
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Jun 13, 2023
1 parent ffb8e16 commit 62aaf7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Audio/Nodes/Node+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public extension Node {
get { auAudioUnit.shouldBypassEffect }
set { auAudioUnit.shouldBypassEffect = newValue }
}

func start() { bypassed = false }
func stop() { bypassed = true }
func play() { bypassed = false }
func bypass() { bypassed = true }
}

/// Protocol mostly to support DynamicOscillator in SoundpipeAudioKit, but could be used elsewhere
Expand Down

0 comments on commit 62aaf7c

Please sign in to comment.