Instance Method


Adds a new analysis request to the audio file analyzer.


- (BOOL)addRequest:(id<SNRequest>)request withObserver:(id<SNResultsObserving>)observer error:(NSError * _Nullable *)error;



An audio analysis request to perform on the audio stream.


The object that receives the analysis results for the supplied request. The analyzer holds a weak reference to this object.


A pointer to an error object.

If an error occurs, this pointer is set to an actual error object containing the error information. You can specify nil for this parameter if you don't want the error details.

Return Value

A Boolean value indicating if the request was successfully added to the analyzer. This method returns an error if you call it while the analyzer is processing the file.

See Also

Managing Requests

- removeRequest:

Removes an existing request from the audio file analyzer.

- removeAllRequests

Removes all requests from the audio file analyzer.