11namespace tracktion {
inline namespace engine
39 TRACKTION_ASSERT_MESSAGE_THREAD
44 void reset (
int numChannels,
double sampleRate)
55 thumb->addBlock (nextSampleNum, incoming, startOffsetInBuffer, numSamples);
56 nextSampleNum += numSamples;
65 thumb (
engine.getUIBehaviour().createAudioThumbnail (1024,
engine.getAudioFileFormatManager().readFormatManager,
66 engine.getAudioFileManager().getAudioThumbnailCache())),
69 TRACKTION_ASSERT_MESSAGE_THREAD
82 TRACKTION_ASSERT_MESSAGE_THREAD
The Engine is the central class for all tracktion sessions.
RecordingThumbnailManager & getRecordingThumbnailManager() const
Returns the RecordingThumbnailManager instance.
Holds a pool of Thumbnails that are populated whilst recording.
Thumbnail::Ptr getThumbnailFor(const juce::File &f)
Returns the Thumbnail for a given audio file.
Represents a position in real-life time.
A thumbnail represeting a recording file.
void reset(int numChannels, double sampleRate)
Destructor.
Engine & engine
The Engine instance this belongs to.
TimePosition punchInTime
The time the start of this thumbnail represents.
const HashCode hash
A hash uniquely identifying this thumbnail.
const std::unique_ptr< juce::AudioThumbnailBase > thumb
The thumbnail.
void addBlock(const juce::AudioBuffer< float > &incoming, int startOffsetInBuffer, int numSamples)
Adss a block of recorded data to the thumbnail.
juce::File file
The file this thumbnail represents.