VST 3 SDK  VST 3.7
SDK for developing VST plug-in

Implementation's example of ProcessData. More...

#include <processdata.h>

+ Inheritance diagram for HostProcessData:

Public Member Functions

 HostProcessData ()
 
virtual ~HostProcessData ()
 
bool prepare (IComponent &component, int32 bufferSamples, int32 _symbolicSampleSize)
 Prepare buffer containers for all busses. More...
 
void unprepare ()
 Remove bus buffers. More...
 
void setChannelBuffers (BusDirection dir, int32 busIndex, Sample32 *sampleBuffer)
 Sets one sample buffer for all channels inside a bus. More...
 
void setChannelBuffers64 (BusDirection dir, int32 busIndex, Sample64 *sampleBuffer)
 
void setChannelBuffers (BusDirection dir, int32 busIndex, Sample32 *sampleBuffers[], int32 bufferCount)
 Sets individual sample buffers per channel inside a bus. More...
 
void setChannelBuffers64 (BusDirection dir, int32 busIndex, Sample64 *sampleBuffers[], int32 bufferCount)
 
void setChannelBuffer (BusDirection dir, int32 busIndex, int32 channelIndex, Sample32 *sampleBuffer)
 Sets one sample buffer for a given channel inside a bus. More...
 
void setChannelBuffer64 (BusDirection dir, int32 busIndex, int32 channelIndex, Sample64 *sampleBuffer)
 
- Public Member Functions inherited from ProcessData
 ProcessData ()
 

Static Public Attributes

static const uint64 kAllChannelsSilent
 

Protected Member Functions

int32 createBuffers (IComponent &component, AudioBusBuffers *&buffers, BusDirection dir, int32 bufferSamples)
 
void destroyBuffers (AudioBusBuffers *&buffers, int32 &busCount)
 
bool checkIfReallocationNeeded (IComponent &component, int32 bufferSamples, int32 _symbolicSampleSize)
 

Protected Attributes

bool channelBufferOwner
 

Additional Inherited Members

- Public Attributes inherited from ProcessData
int32 processMode
 
int32 symbolicSampleSize
 
int32 numSamples
 
int32 numInputs
 
int32 numOutputs
 
AudioBusBuffersinputs
 
AudioBusBuffersoutputs
 
IParameterChangesinputParameterChanges
 
IParameterChangesoutputParameterChanges
 
IEventListinputEvents
 
IEventListoutputEvents
 
ProcessContextprocessContext
 

Detailed Description

Implementation's example of ProcessData.

Constructor & Destructor Documentation

◆ HostProcessData()

HostProcessData ( )
inline

◆ ~HostProcessData()

~HostProcessData ( )
virtual

Member Function Documentation

◆ prepare()

bool prepare ( IComponent component,
int32  bufferSamples,
int32  _symbolicSampleSize 
)

Prepare buffer containers for all busses.

If bufferSamples is not null buffers will be created.

◆ unprepare()

void unprepare ( )

Remove bus buffers.

◆ setChannelBuffers() [1/2]

void setChannelBuffers ( BusDirection  dir,
int32  busIndex,
Sample32 sampleBuffer 
)
inline

Sets one sample buffer for all channels inside a bus.

◆ setChannelBuffers64() [1/2]

void setChannelBuffers64 ( BusDirection  dir,
int32  busIndex,
Sample64 sampleBuffer 
)
inline

◆ setChannelBuffers() [2/2]

void setChannelBuffers ( BusDirection  dir,
int32  busIndex,
Sample32 sampleBuffers[],
int32  bufferCount 
)
inline

Sets individual sample buffers per channel inside a bus.

◆ setChannelBuffers64() [2/2]

void setChannelBuffers64 ( BusDirection  dir,
int32  busIndex,
Sample64 sampleBuffers[],
int32  bufferCount 
)
inline

◆ setChannelBuffer()

void setChannelBuffer ( BusDirection  dir,
int32  busIndex,
int32  channelIndex,
Sample32 sampleBuffer 
)
inline

Sets one sample buffer for a given channel inside a bus.

◆ setChannelBuffer64()

void setChannelBuffer64 ( BusDirection  dir,
int32  busIndex,
int32  channelIndex,
Sample64 sampleBuffer 
)
inline

◆ createBuffers()

int32 createBuffers ( IComponent component,
AudioBusBuffers *&  buffers,
BusDirection  dir,
int32  bufferSamples 
)
protected

◆ destroyBuffers()

void destroyBuffers ( AudioBusBuffers *&  buffers,
int32 busCount 
)
protected

◆ checkIfReallocationNeeded()

bool checkIfReallocationNeeded ( IComponent component,
int32  bufferSamples,
int32  _symbolicSampleSize 
)
protected

Member Data Documentation

◆ kAllChannelsSilent

const uint64 kAllChannelsSilent
static
Initial value:
=
0xffffffffffffffffUL

◆ channelBufferOwner

bool channelBufferOwner
protected
Empty

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