subscribeTo

abstract fun subscribeTo(onFrameAvailable: Consumer<AudioProcessor.Input.Frame>): Closeable

Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.