finalize(through:)
Finalizes the modules’ analyses.
Declaration
final func finalize(through: CMTime?) async throwsParameters
- through:
Finalizes up to and including the given time-code. If the analyzer hasn’t already consumed that audio from the input sequence, the method waits until the analyzer consumes that audio before finalizing.
If
nil, finalizes up to and including the last audio the analyzer has consumed from the input sequence, and if the analyzer has not consumed any audio from the input sequence, this method does nothing.
Discussion
At the return of this method, input up to and including the given time will have been analyzed. Modules will have published the finalized results to their stream, but the application may not have consumed them from the results stream yet. volatileRange will post-date the given time.
If the given time has already been finalized (it pre-dates the volatile range), then this method does nothing.