VST 3 SDK VST 3.7
SDK for developing VST plug-in
ProcessDataSlicer Class Reference

Process Data Slicer. More...

#include <processdataslicer.h>

Public Member Functions

 ProcessDataSlicer (int32 inSliceSize=8)
 Constructor. More...
 
template<SymbolicSampleSizes SampleSize, typename DoProcessCallback >
void process (ProcessData &data, DoProcessCallback doProcessing) noexcept
 Process the data. More...
 
void stop () noexcept
 Stop the slice process. More...
 

Detailed Description

Process Data Slicer.

Cuts the VST process data into slices to process

Example:

tresult PLUGIN_API Processor::process (ProcessData& data)
{
ProcessDataSlicer slicer (32);
slicer.process<SymbolicSampleSizes::kSample32> (data, [&] (ProcessData& data) {
doSlicedProcessing (data); // data.numSamples <= 32
});
}
ProcessDataSlicer(int32 inSliceSize=8)
Constructor.
Definition: processdataslicer.h:69
int32 tresult

Constructor & Destructor Documentation

◆ ProcessDataSlicer()

ProcessDataSlicer ( int32  inSliceSize = 8)
inline

Constructor.

Parameters
inSliceSiceslice size in samples

Member Function Documentation

◆ process()

void process ( ProcessData data,
DoProcessCallback  doProcessing 
)
inlinenoexcept

Process the data.

Template Parameters
SampleSizesample size 32 or 64 bit processing
DoProcessCallbackthe callback proc
Parameters
dataProcess data
doProcessingprocess callback

◆ stop()

void stop ( )
inlinenoexcept

Stop the slice process.

If you want to break the slice processing early, you have to capture the slicer in the DoProcessCallback and call the stop method.

Empty

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