tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::engine::BufferedAudioReader Class Reference
Inheritance diagram for tracktion::engine::BufferedAudioReader:
juce::AudioFormatReader juce::TimeSliceClient

Public Member Functions

 BufferedAudioReader (std::unique_ptr< juce::AudioFormatReader >, juce::TimeSliceThread &)
 
 ~BufferedAudioReader () override
 Destructor.
 
float getProportionComplete () const
 Returns the proportion of the source that has been cached.
 
bool readSamples (int *const *destSamples, int numDestChannels, int startOffsetInDestBuffer, juce::int64 startSampleInFile, int numSamples) override
 
int useTimeSlice () override
 
- Public Member Functions inherited from juce::AudioFormatReader
const StringgetFormatName () const noexcept
 
bool read (float *const *destChannels, int numDestChannels, int64 startSampleInSource, int numSamplesToRead)
 
bool read (int *const *destChannels, int numDestChannels, int64 startSampleInSource, int numSamplesToRead, bool fillLeftoverChannelsWithCopies)
 
bool read (AudioBuffer< float > *buffer, int startSampleInDestBuffer, int numSamples, int64 readerStartSample, bool useReaderLeftChan, bool useReaderRightChan)
 
virtual void readMaxLevels (int64 startSample, int64 numSamples, Range< float > *results, int numChannelsToRead)
 
virtual void readMaxLevels (int64 startSample, int64 numSamples, float &lowestLeft, float &highestLeft, float &lowestRight, float &highestRight)
 
int64 searchForLevel (int64 startSample, int64 numSamplesToSearch, double magnitudeRangeMinimum, double magnitudeRangeMaximum, int minimumConsecutiveSamples)
 
virtual AudioChannelSet getChannelLayout ()
 

Additional Inherited Members

- Public Attributes inherited from juce::AudioFormatReader
double sampleRate
 
unsigned int bitsPerSample
 
int64 lengthInSamples
 
unsigned int numChannels
 
bool usesFloatingPointData
 
StringPairArray metadataValues
 
InputStreaminput
 
- Protected Member Functions inherited from juce::AudioFormatReader
 AudioFormatReader (InputStream *sourceStream, const String &formatName)
 
- Static Protected Member Functions inherited from juce::AudioFormatReader
static void clearSamplesBeyondAvailableLength (int *const *destChannels, int numDestChannels, int startOffsetInDestBuffer, int64 startSampleInFile, int &numSamples, int64 fileLengthInSamples)
 

Detailed Description

Definition at line 16 of file tracktion_BufferedAudioReader.h.

Constructor & Destructor Documentation

◆ BufferedAudioReader()

tracktion::engine::BufferedAudioReader::BufferedAudioReader ( std::unique_ptr< juce::AudioFormatReader sourceReader,
juce::TimeSliceThread t 
)

Definition at line 15 of file tracktion_BufferedAudioReader.cpp.

◆ ~BufferedAudioReader()

tracktion::engine::BufferedAudioReader::~BufferedAudioReader ( )
override

Destructor.

Definition at line 34 of file tracktion_BufferedAudioReader.cpp.

Member Function Documentation

◆ getProportionComplete()

float tracktion::engine::BufferedAudioReader::getProportionComplete ( ) const

Returns the proportion of the source that has been cached.

Definition at line 39 of file tracktion_BufferedAudioReader.cpp.

◆ readSamples()

bool tracktion::engine::BufferedAudioReader::readSamples ( int *const *  destSamples,
int  numDestChannels,
int  startOffsetInDestBuffer,
juce::int64  startSampleInFile,
int  numSamples 
)
overridevirtual

Implements juce::AudioFormatReader.

Definition at line 45 of file tracktion_BufferedAudioReader.cpp.

◆ useTimeSlice()

int tracktion::engine::BufferedAudioReader::useTimeSlice ( )
overridevirtual

Implements juce::TimeSliceClient.

Definition at line 76 of file tracktion_BufferedAudioReader.cpp.


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