TracktionEngine
Classes | Public Member Functions | Static Public Member Functions | List of all members
tracktion::engine::HostedAudioDeviceInterface Class Reference

The HostedAudioDeviceInterface allows an application or plugin to pass audio and midi buffers to the engine, rather than the engine directly opening the audio devices. More...

Classes

struct  Parameters
 Holds the parameters being used by an HostedAudioDeviceInterface. More...
 

Public Member Functions

 HostedAudioDeviceInterface (Engine &)
 
void initialise (const Parameters &)
 
void prepareToPlay (double sampleRate, int blockSize)
 
void processBlock (juce::AudioBuffer< float > &buffer, juce::MidiBuffer &)
 

Static Public Member Functions

static bool isHostedMidiInputDevice (const MidiInputDevice &)
 Returns true if the MidiInput device is a HostedMidiInputDevice. More...
 

Detailed Description

The HostedAudioDeviceInterface allows an application or plugin to pass audio and midi buffers to the engine, rather than the engine directly opening the audio devices.

This may be required for plugins or applications that run multiple copies of the engine.

Don't create this class directly, it can be optained from the DeviceManager via getHostedAudioDeviceInterface()

Constructor & Destructor Documentation

◆ HostedAudioDeviceInterface()

tracktion::engine::HostedAudioDeviceInterface::HostedAudioDeviceInterface ( Engine )

Member Function Documentation

◆ initialise()

void tracktion::engine::HostedAudioDeviceInterface::initialise ( const Parameters )

◆ prepareToPlay()

void tracktion::engine::HostedAudioDeviceInterface::prepareToPlay ( double  sampleRate,
int  blockSize 
)

◆ processBlock()

void tracktion::engine::HostedAudioDeviceInterface::processBlock ( juce::AudioBuffer< float > &  buffer,
juce::MidiBuffer &   
)

◆ isHostedMidiInputDevice()

static bool tracktion::engine::HostedAudioDeviceInterface::isHostedMidiInputDevice ( const MidiInputDevice )
static

Returns true if the MidiInput device is a HostedMidiInputDevice.


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