TracktionEngine
Public Types | Public Member Functions | Public Attributes | List of all members
tracktion::engine::RecordingThumbnailManager::Thumbnail Struct Reference

A thumbnail represeting a recording file. More...

Inherits juce::ReferenceCountedObject.

Public Types

using Ptr = juce::ReferenceCountedObjectPtr< Thumbnail >
 

Public Member Functions

 ~Thumbnail ()
 Destructor. More...
 
void reset (int numChannels, double sampleRate)
 Destructor. More...
 
void addBlock (const juce::AudioBuffer< float > &incoming, int startOffsetInBuffer, int numSamples)
 Adss a block of recorded data to the thumbnail. More...
 

Public Attributes

Engineengine
 The Engine instance this belongs to. More...
 
const std::unique_ptr< juce::AudioThumbnailBase > thumb
 The thumbnail. More...
 
juce::File file
 The file this thumbnail represents. More...
 
const HashCode hash
 A hash uniquely identifying this thumbnail. More...
 
TimePosition punchInTime
 The time the start of this thumbnail represents. More...
 

Detailed Description

A thumbnail represeting a recording file.

Get one of these for a file with the getThumbnailFor function.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ ~Thumbnail()

tracktion::engine::RecordingThumbnailManager::Thumbnail::~Thumbnail ( )

Member Function Documentation

◆ reset()

void tracktion::engine::RecordingThumbnailManager::Thumbnail::reset ( int  numChannels,
double  sampleRate 
)

Destructor.

References thumb.

◆ addBlock()

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.

Member Data Documentation

◆ engine

Engine& tracktion::engine::RecordingThumbnailManager::Thumbnail::engine

The Engine instance this belongs to.

Referenced by ~Thumbnail().

◆ thumb

const std::unique_ptr<juce::AudioThumbnailBase> tracktion::engine::RecordingThumbnailManager::Thumbnail::thumb

The thumbnail.

Referenced by addBlock(), and reset().

◆ file

juce::File tracktion::engine::RecordingThumbnailManager::Thumbnail::file

The file this thumbnail represents.

◆ hash

const HashCode tracktion::engine::RecordingThumbnailManager::Thumbnail::hash

A hash uniquely identifying this thumbnail.

◆ punchInTime

TimePosition tracktion::engine::RecordingThumbnailManager::Thumbnail::punchInTime

The time the start of this thumbnail represents.


The documentation for this struct was generated from the following file: