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::FallbackReader Struct Referenceabstract
Inheritance diagram for tracktion::engine::FallbackReader:
juce::AudioFormatReader tracktion::engine::BufferedFileReaderWrapper tracktion::engine::BufferingAudioReaderWrapper tracktion::engine::MemoryMappedFileReader

Public Member Functions

 FallbackReader ()
 Constructor.
 
virtual void setReadTimeout (int timeoutMilliseconds)=0
 Subclassed must override this to set the timeout.
 
- 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 ()
 
virtual bool readSamples (int *const *destChannels, int numDestChannels, int startOffsetInDestBuffer, int64 startSampleInFile, int numSamples)=0
 

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 14 of file tracktion_AudioFileCache.h.

Constructor & Destructor Documentation

◆ FallbackReader()

tracktion::engine::FallbackReader::FallbackReader ( )

Constructor.

Definition at line 16 of file tracktion_AudioFileCache.cpp.

Member Function Documentation

◆ setReadTimeout()

virtual void tracktion::engine::FallbackReader::setReadTimeout ( int  timeoutMilliseconds)
pure virtual

Subclassed must override this to set the timeout.

A value of less than 0 means wait forever, A value of 0 means don't wait A value greater than 0 means wait for the given number of ms

Implemented in tracktion::engine::BufferingAudioReaderWrapper, tracktion::engine::MemoryMappedFileReader, and tracktion::engine::BufferedFileReaderWrapper.


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