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::MemoryMappedFloatReader Class Reference
Inheritance diagram for tracktion::engine::MemoryMappedFloatReader:
juce::MemoryMappedAudioFormatReader juce::AudioFormatReader

Public Member Functions

 MemoryMappedFloatReader (const juce::File &f, const FloatAudioFormatReader &reader)
 
bool readSamples (int *const *destSamples, int numDestChannels, int startOffsetInDestBuffer, juce::int64 startSampleInFile, int numSamples) override
 
void getSample (juce::int64 sample, float *result) const noexcept override
 
void readMaxLevels (juce::int64 startSampleInFile, juce::int64 numSamples, juce::Range< float > *results, int numChannelsToRead) override
 
- Public Member Functions inherited from juce::MemoryMappedAudioFormatReader
const FilegetFile () const noexcept
 
bool mapEntireFile ()
 
virtual bool mapSectionOfFile (Range< int64 > samplesToMap)
 
Range< int64getMappedSection () const noexcept
 
void touchSample (int64 sample) const noexcept
 
size_t getNumBytesUsed () const
 
- 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, 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::MemoryMappedAudioFormatReader
 MemoryMappedAudioFormatReader (const File &file, const AudioFormatReader &details, int64 dataChunkStart, int64 dataChunkLength, int bytesPerFrame)
 
int64 sampleToFilePos (int64 sample) const noexcept
 
int64 filePosToSample (int64 filePos) const noexcept
 
const void * sampleToPointer (int64 sample) const noexcept
 
Range< floatscanMinAndMaxInterleaved (int channel, int64 startSampleInFile, int64 numSamples) const noexcept
 
- 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 168 of file tracktion_FloatAudioFileFormat.cpp.

Constructor & Destructor Documentation

◆ MemoryMappedFloatReader()

tracktion::engine::MemoryMappedFloatReader::MemoryMappedFloatReader ( const juce::File f,
const FloatAudioFormatReader reader 
)

Definition at line 171 of file tracktion_FloatAudioFileFormat.cpp.

Member Function Documentation

◆ getSample()

void tracktion::engine::MemoryMappedFloatReader::getSample ( juce::int64  sample,
float result 
) const
overridevirtualnoexcept

◆ readMaxLevels()

void tracktion::engine::MemoryMappedFloatReader::readMaxLevels ( juce::int64  startSampleInFile,
juce::int64  numSamples,
juce::Range< float > *  results,
int  numChannelsToRead 
)
overridevirtual

Reimplemented from juce::AudioFormatReader.

Definition at line 224 of file tracktion_FloatAudioFileFormat.cpp.

◆ readSamples()

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

Implements juce::AudioFormatReader.

Definition at line 180 of file tracktion_FloatAudioFileFormat.cpp.


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