AudioThumbnail::addBlock


#1

aloha, could someone explain how AudioThumbnail::addBlock works? This is the description available in the docs: “Adds a block of level data to the thumbnail.”

void AudioThumbnail::addBlock(int64 sampleNumberInSource, const AudioSampleBuffer & newData, int startOffsetInBuffer, int numSamples)

Thanks in advance and sorry if it’s a noob question, first time having trouble understading the juce documentation (not sure what “block of level data” means).


#2

“Block of level data” is somewhat inconsistent wording, I agree. What it’s talking about is a block of floats that represent an audio signal you want to add to the display of the thumbnail, which is the AudioSamplebuffer argument.