VST 3 SDK: ProcessDataSlicer Class Reference
Author: Steinberg

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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
Public Member Functions | List of all members
ProcessDataSlicer Class Reference

Process Data Slicer. More...

`#include <processdataslicer.h>`

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

## 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
});
}

## Constructor & Destructor Documentation

ProcessDataSlicer | ( | int32 | inSliceSize = `8` | ) |
| inline

Constructor.

Parameters

  inSliceSice | slice size in samples

## Member Function Documentation

void process | ( | ProcessData & | data,
|  | DoProcessCallback | doProcessing
| ) |  |
| inlinenoexcept

Process the data.

Template Parameters

  SampleSize | sample size 32 or 64 bit processing
  DoProcessCallback | the callback proc

Parameters

  data | Process data
  doProcessing | process callback

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 ©2023 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.