finish(after:)
Finishes analysis once input for a given time is consumed.
Declaration
final func finish(after: CMTime) async throwsParameters
- after:
An audio time marking the end of the analysis session.
Discussion
In most cases, you can call finalizeAndFinish(through:) or cancelAndFinishNow() instead. Those methods also finish analysis.
At the return of this method, the modules’ result streams will have ended and the modules will not accept further input from the input sequence. The analyzer will not be able to resume analysis with a different input sequence and will not accept module changes; most methods will do nothing.
Analysis of input up to and including the given time may or may not have been completed. Modules will not publish additional results to their streams, but the application can read any results the modules have already published. To ensure analysis is completed or skipped before finishing, call finalize(through:) or cancelAnalysis(before:).
You do not need to call this method before releasing this analyzer or its modules.