generate Audio Thumbnail Sequence
Generate a thumbnail sequence for the given audio block or video fill. A thumbnail in this case is a chunk of samples in the range of 0 to 1. In case stereo data is requested, the samples are interleaved, starting with the left channel. Note: Only one request per block runs at a time. A second request for the same block waits for the first to finish instead of failing. Note: numberOfSamples counts samples per channel, so each emission carries samplesPerChunk * numberOfChannels floats and the last one may be shorter. Note: Collect on the main thread; collection throws otherwise.
Return
a flow of AudioThumbnailResult object which emits numberOfSamples / samplesPerChunk times.
Parameters
the audio block or video fill.
the number of samples per chunk.
the time in seconds at which the thumbnail sequence should start.
the time in seconds at which the thumbnail sequence should end.
the total number of samples to generate.
the number of channels in the output. 1 for mono, 2 for stereo.