TracktionEngine
|
A thumbnail represeting a recording file. More...
#include <tracktion_RecordingThumbnailManager.h>
Inherits juce::ReferenceCountedObject.
Public Types | |
using | Ptr = juce::ReferenceCountedObjectPtr< Thumbnail > |
Public Member Functions | |
~Thumbnail () | |
Destructor. | |
void | reset (int numChannels, double sampleRate) |
Destructor. | |
void | addBlock (const juce::AudioBuffer< float > &incoming, int startOffsetInBuffer, int numSamples) |
Adss a block of recorded data to the thumbnail. | |
Public Attributes | |
Engine & | engine |
The Engine instance this belongs to. | |
const std::unique_ptr< juce::AudioThumbnailBase > | thumb |
The thumbnail. | |
juce::File | file |
The file this thumbnail represents. | |
const HashCode | hash |
A hash uniquely identifying this thumbnail. | |
TimePosition | punchInTime |
The time the start of this thumbnail represents. | |
A thumbnail represeting a recording file.
Get one of these for a file with the getThumbnailFor function.
using tracktion::engine::RecordingThumbnailManager::Thumbnail::Ptr = juce::ReferenceCountedObjectPtr<Thumbnail> |
tracktion::engine::RecordingThumbnailManager::Thumbnail::~Thumbnail | ( | ) |
Destructor.
void tracktion::engine::RecordingThumbnailManager::Thumbnail::reset | ( | int | numChannels, |
double | sampleRate | ||
) |
Destructor.
References thumb.
void tracktion::engine::RecordingThumbnailManager::Thumbnail::addBlock | ( | const juce::AudioBuffer< float > & | incoming, |
int | startOffsetInBuffer, | ||
int | numSamples | ||
) |
Adss a block of recorded data to the thumbnail.
This is called by the engine so shouldn't need to be called manually.
References thumb.
Engine& tracktion::engine::RecordingThumbnailManager::Thumbnail::engine |
The Engine instance this belongs to.
const std::unique_ptr<juce::AudioThumbnailBase> tracktion::engine::RecordingThumbnailManager::Thumbnail::thumb |
The thumbnail.
Referenced by addBlock(), and reset().
juce::File tracktion::engine::RecordingThumbnailManager::Thumbnail::file |
The file this thumbnail represents.
const HashCode tracktion::engine::RecordingThumbnailManager::Thumbnail::hash |
A hash uniquely identifying this thumbnail.
TimePosition tracktion::engine::RecordingThumbnailManager::Thumbnail::punchInTime |
The time the start of this thumbnail represents.