TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
graph::LatencyProcessor Struct Reference

#include <tracktion_LatencyProcessor.h>

Public Member Functions

 LatencyProcessor ()=default
 
bool hasSameConfigurationAs (const LatencyProcessor &o) const
 Returns ture if the the sample rate, channels etc.
 
bool hasConfiguration (int numLatencySamples, double preparedSampleRate, int numberOfChannels) const
 Returns ture if the the sample rate, channels etc.
 
int getLatencyNumSamples () const
 
void setLatencyNumSamples (int numLatencySamples)
 
void prepareToPlay (double sampleRateToUse, int blockSize, int numChannels)
 
void writeAudio (choc::buffer::ChannelArrayView< float > src)
 
void writeMIDI (const tracktion_engine::MidiMessageArray &src)
 
void readAudioAdding (choc::buffer::ChannelArrayView< float > dst)
 
void readAudioOverwriting (choc::buffer::ChannelArrayView< float > dst)
 
void readMIDI (tracktion_engine::MidiMessageArray &dst, int numSamples)
 
void clearAudio (int numSamples)
 
void clearMIDI (int numSamples)
 

Constructor & Destructor Documentation

◆ LatencyProcessor()

graph::LatencyProcessor::LatencyProcessor ( )
default

Member Function Documentation

◆ hasSameConfigurationAs()

bool graph::LatencyProcessor::hasSameConfigurationAs ( const LatencyProcessor o) const

Returns ture if the the sample rate, channels etc.

are the same between the two objects.

References graph::AudioFifo::getNumChannels().

◆ hasConfiguration()

bool graph::LatencyProcessor::hasConfiguration ( int  numLatencySamples,
double  preparedSampleRate,
int  numberOfChannels 
) const

Returns ture if the the sample rate, channels etc.

are those specified.

◆ getLatencyNumSamples()

int graph::LatencyProcessor::getLatencyNumSamples ( ) const

◆ setLatencyNumSamples()

void graph::LatencyProcessor::setLatencyNumSamples ( int  numLatencySamples)

◆ prepareToPlay()

void graph::LatencyProcessor::prepareToPlay ( double  sampleRateToUse,
int  blockSize,
int  numChannels 
)

References graph::sampleToTime().

◆ writeAudio()

void graph::LatencyProcessor::writeAudio ( choc::buffer::ChannelArrayView< float >  src)

◆ writeMIDI()

void graph::LatencyProcessor::writeMIDI ( const tracktion_engine::MidiMessageArray &  src)

◆ readAudioAdding()

void graph::LatencyProcessor::readAudioAdding ( choc::buffer::ChannelArrayView< float >  dst)

◆ readAudioOverwriting()

void graph::LatencyProcessor::readAudioOverwriting ( choc::buffer::ChannelArrayView< float >  dst)

◆ readMIDI()

void graph::LatencyProcessor::readMIDI ( tracktion_engine::MidiMessageArray &  dst,
int  numSamples 
)

References graph::sampleToTime().

◆ clearAudio()

void graph::LatencyProcessor::clearAudio ( int  numSamples)

◆ clearMIDI()

void graph::LatencyProcessor::clearMIDI ( int  numSamples)

References graph::sampleToTime().


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