JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
juce::AudioThumbnail::LevelDataSource Class Referencefinal
Inheritance diagram for juce::AudioThumbnail::LevelDataSource:
juce::TimeSliceClient

Public Types

enum  { timeBeforeDeletingReader }
 

Public Member Functions

 LevelDataSource (AudioThumbnail &thumb, AudioFormatReader *newReader, int64 hash)
 
 LevelDataSource (AudioThumbnail &thumb, InputSource *src)
 
void initialise (int64 samplesFinished)
 
void getLevels (int64 startSample, int numSamples, Array< Range< float > > &levels)
 
void releaseResources ()
 
int useTimeSlice () override
 Called back by a TimeSliceThread.
 
bool isFullyLoaded () const noexcept
 
int sampleToThumbSample (const int64 originalSample) const noexcept
 
- Public Member Functions inherited from juce::TimeSliceClient
virtual ~TimeSliceClient ()=default
 Destructor.
 

Public Attributes

int64 lengthInSamples
 
int64 numSamplesFinished
 
double sampleRate
 
unsigned int numChannels
 
int64 hashCode
 

Detailed Description

Definition at line 147 of file juce_AudioThumbnail.cpp.

Member Enumeration Documentation

◆ anonymous enum

Definition at line 165 of file juce_AudioThumbnail.cpp.

Constructor & Destructor Documentation

◆ LevelDataSource() [1/2]

juce::AudioThumbnail::LevelDataSource::LevelDataSource ( AudioThumbnail thumb,
AudioFormatReader newReader,
int64  hash 
)

Definition at line 150 of file juce_AudioThumbnail.cpp.

◆ LevelDataSource() [2/2]

juce::AudioThumbnail::LevelDataSource::LevelDataSource ( AudioThumbnail thumb,
InputSource src 
)

Definition at line 155 of file juce_AudioThumbnail.cpp.

◆ ~LevelDataSource()

juce::AudioThumbnail::LevelDataSource::~LevelDataSource ( )
override

Definition at line 160 of file juce_AudioThumbnail.cpp.

Member Function Documentation

◆ getLevels()

void juce::AudioThumbnail::LevelDataSource::getLevels ( int64  startSample,
int  numSamples,
Array< Range< float > > &  levels 
)

Definition at line 188 of file juce_AudioThumbnail.cpp.

◆ initialise()

void juce::AudioThumbnail::LevelDataSource::initialise ( int64  samplesFinished)

Definition at line 167 of file juce_AudioThumbnail.cpp.

◆ isFullyLoaded()

bool juce::AudioThumbnail::LevelDataSource::isFullyLoaded ( ) const
noexcept

Definition at line 256 of file juce_AudioThumbnail.cpp.

◆ releaseResources()

void juce::AudioThumbnail::LevelDataSource::releaseResources ( )

Definition at line 214 of file juce_AudioThumbnail.cpp.

◆ sampleToThumbSample()

int juce::AudioThumbnail::LevelDataSource::sampleToThumbSample ( const int64  originalSample) const
noexcept

Definition at line 261 of file juce_AudioThumbnail.cpp.

◆ useTimeSlice()

int juce::AudioThumbnail::LevelDataSource::useTimeSlice ( )
overridevirtual

Called back by a TimeSliceThread.

When you register this class with it, a TimeSliceThread will repeatedly call this method.

The implementation of this method should use its time-slice to do something that's quick - never block for longer than absolutely necessary.

Returns
Your method should return the number of milliseconds which it would like to wait before being called again. Returning 0 will make the thread call again as soon as possible (after possibly servicing other busy clients). If you return a value below zero, your client will be removed from the list of clients, and won't be called again. The value you specify isn't a guarantee, and is only used as a hint by the thread - the actual time before the next callback may be more or less than specified. You can force the TimeSliceThread to wake up and poll again immediately by calling its notify() method.

Implements juce::TimeSliceClient.

Definition at line 220 of file juce_AudioThumbnail.cpp.

Member Data Documentation

◆ hashCode

int64 juce::AudioThumbnail::LevelDataSource::hashCode

Definition at line 269 of file juce_AudioThumbnail.cpp.

◆ lengthInSamples

int64 juce::AudioThumbnail::LevelDataSource::lengthInSamples

Definition at line 266 of file juce_AudioThumbnail.cpp.

◆ numChannels

unsigned int juce::AudioThumbnail::LevelDataSource::numChannels

Definition at line 268 of file juce_AudioThumbnail.cpp.

◆ numSamplesFinished

int64 juce::AudioThumbnail::LevelDataSource::numSamplesFinished

Definition at line 266 of file juce_AudioThumbnail.cpp.

◆ sampleRate

double juce::AudioThumbnail::LevelDataSource::sampleRate

Definition at line 267 of file juce_AudioThumbnail.cpp.


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