VST 3 SDK VST 3.7
SDK for developing VST plug-in
|
#include <hostdataexchangehandler.h>
Public Member Functions | |
HostDataExchangeHandler (IDataExchangeHandlerHost &host, uint32 maxQueues=64) | |
Constructor. More... | |
~HostDataExchangeHandler () noexcept | |
IDataExchangeHandler * | getInterface () const |
get the IHostDataExchangeManager interface More... | |
uint32 | sendMainThreadBlocks () |
send blocks More... | |
uint32 | sendBackgroundBlocks (DataExchangeQueueID queueId=InvalidDataExchangeQueueID) |
send blocks More... | |
HostDataExchangeHandler | ( | IDataExchangeHandlerHost & | host, |
uint32 | maxQueues = 64 |
||
) |
Constructor.
allocate and deallocate this object on the main thread
the number of queues is constant
host | the managing host |
maxQueues | number of maximal allowed open queues |
|
defaultnoexcept |
IDataExchangeHandler * getInterface | ( | ) | const |
get the IHostDataExchangeManager interface
the interface you must provide to the IAudioProcessor
uint32 sendMainThreadBlocks | ( | ) |
send blocks
the host should periodically call this method on the main thread to send all queued blocks which should be send on the main thread
uint32 sendBackgroundBlocks | ( | DataExchangeQueueID | queueId = InvalidDataExchangeQueueID | ) |
send blocks
the host should call this on a dedicated background thread inside a mutex is used, so don't delete this object while calling this
queueId | only send blocks from the specified queue. If queueId is equal to InvalidDataExchangeQueueID all blocks from all queues are send. |