VST 3 SDK  VST 3.7
SDK for developing VST plug-in
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
HostDataExchangeHandler Struct Reference

#include <hostdataexchangehandler.h>

Public Member Functions

 HostDataExchangeHandler (IDataExchangeHandlerHost &host, uint32 maxQueues=64)
 Constructor.
 
 ~HostDataExchangeHandler () noexcept
 
IDataExchangeHandlergetInterface () const
 get the IHostDataExchangeManager interface
 
uint32 sendMainThreadBlocks ()
 send blocks
 
uint32 sendBackgroundBlocks (DataExchangeQueueID queueId=InvalidDataExchangeQueueID)
 send blocks
 

Constructor & Destructor Documentation

HostDataExchangeHandler ( IDataExchangeHandlerHost host,
uint32  maxQueues = 64 
)

Constructor.

allocate and deallocate this object on the main thread

the number of queues is constant

Parameters
hostthe managing host
maxQueuesnumber of maximal allowed open queues
~HostDataExchangeHandler ( )
defaultnoexcept

Member Function Documentation

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

Parameters
queueIdonly send blocks from the specified queue. If queueId is equal to InvalidDataExchangeQueueID all blocks from all queues are send.
Empty

Copyright ©2024 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.