ChannelPtr
The ChannelPtr is just a lightweight wrapper around the start of the channel data of a ProcessData
object.
It is returned by the iterator and can be used to create a dyn
void process(ProcessDataFix<2>& data)
{
for(auto & ch: data)
{
// pass the `ch` variable to the toChannelData() call and it will create
// a proper dyn (using the sample amount from the data object).
for(auto& s: data.toChannelData(ch))
s *= 0.5f;
}
}