add(_:withObserver:)
Adds a new analysis request to the audio file analyzer.
Declaration
func add(_ request: any SNRequest, withObserver observer: any SNResultsObserving) throwsParameters
- request:
A sound analysis request.
- observer:
An Snresultsobserving instance that receives the analyzer’s results. The analyzer maintains a weak reference to the observer.
Mentioned in
Discussion
The method throws an error (Swift) or returns an error (Objective-C) if the analyzer is actively processing the file.