TracktionEngine
Loading...
Searching...
No Matches
engine::RecordingThumbnailManager::Thumbnail Struct Reference

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.

Detailed Description

A thumbnail represeting a recording file.

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

Member Typedef Documentation

◆ Ptr

using engine::RecordingThumbnailManager::Thumbnail::Ptr = juce::ReferenceCountedObjectPtr<Thumbnail>

Constructor & Destructor Documentation

◆ ~Thumbnail()

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

Destructor.

Member Function Documentation

◆ reset()

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

Destructor.

References thumb.

◆ addBlock()

void 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& engine::RecordingThumbnailManager::Thumbnail::engine

The Engine instance this belongs to.

◆ thumb

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

The thumbnail.

Referenced by addBlock(), and reset().

◆ file

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

The file this thumbnail represents.

◆ hash

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

A hash uniquely identifying this thumbnail.

◆ punchInTime

TimePosition engine::RecordingThumbnailManager::Thumbnail::punchInTime

The time the start of this thumbnail represents.


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