analyzeSequence(_:)
Analyzes an input sequence, returning when the sequence is consumed.
Declaration
final func analyzeSequence<InputSequence>(_ inputSequence: InputSequence) async throws -> CMTime? where InputSequence : Sendable, InputSequence : AsyncSequence, InputSequence.Element == AnalyzerInputParameters
- inputSequence:
An input sequence to analyze.
Return Value
The time-code of the last audio sample of the input, or nil if the input sequence was empty. You may use this value for the parameter of finalizeAndFinish(through:) (or other methods).
Discussion
When this method returns, the input sequence will have been consumed, but the last of the audio may still be undergoing analysis. To wait for the analysis to complete, call another method such as finalize(through:) and await its return.