Instance Method

addRequest:withObserver:error:

Adds a new analysis request to the audio file analyzer.

Declaration

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

Parameters

request

An audio analysis request to perform on the audio stream.

observer

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

error

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.