#include <tracktion_AudioFileCache.h>
◆ AudioFileCache()
| engine::AudioFileCache::AudioFileCache |
( |
Engine & |
| ) |
|
◆ ~AudioFileCache()
| engine::AudioFileCache::~AudioFileCache |
( |
| ) |
|
◆ createReader() [1/2]
Creates a Reader to read an AudioFile.
This will use a memoery mapped reader for uncompressed formats.
◆ createReader() [2/2]
| Reader::Ptr engine::AudioFileCache::createReader |
( |
const AudioFile & |
, |
|
|
const std::function< std::unique_ptr< AudioFormatReaderWithTimeout >(juce::AudioFormatReader *sourceReader, juce::TimeSliceThread &timeSliceThread, int samplesToBuffer)> & |
createAudioFormatReaderWithTimeout |
|
) |
| |
◆ createAudioFormatReaderWithTimeout()
| Reader::Ptr engine::AudioFileCache::createAudioFormatReaderWithTimeout |
( |
const std::function< std::unique_ptr< AudioFormatReaderWithTimeout >(juce::TimeSliceThread &timeSliceThread, int samplesToBuffer)> & |
createAudioFormatReaderWithTimeout | ) |
|
◆ setCacheSizeSamples()
| void engine::AudioFileCache::setCacheSizeSamples |
( |
SampleCount |
samplesPerFile | ) |
|
◆ getCacheSizeSamples()
| SampleCount engine::AudioFileCache::getCacheSizeSamples |
( |
| ) |
const |
◆ getBytesInUse()
| SampleCount engine::AudioFileCache::getBytesInUse |
( |
| ) |
const |
◆ hasCacheMissed()
| bool engine::AudioFileCache::hasCacheMissed |
( |
bool |
clearMissedFlag | ) |
|
◆ getCpuUsage()
| TimeDuration engine::AudioFileCache::getCpuUsage |
( |
| ) |
const |
Returns the amount of time spent reading files in the last block.
◆ nextBlockStarted()
| void engine::AudioFileCache::nextBlockStarted |
( |
| ) |
|
◆ hasMappedReader()
The documentation for this class was generated from the following file: