Signalsmith Audio's DSP Library  1.6.0
Useful C++ classes/templates for audio effects
Methods
signalsmith::delay::MultiBuffer< Sample >::Stride< isConst > Class Template Reference

#include <delay.h>

Detailed Description

template<typename Sample>
template<bool isConst>
class signalsmith::delay::MultiBuffer< Sample >::Stride< isConst >

A reference-like multi-channel result for a particular sample index.

Methods

 Stride (CChannel view, int channels, int stride)
 
 Stride (const Stride &other)
 
CSample & operator[] (int channel)
 
const Sample & operator[] (int channel) const
 
template<class Data >
void get (Data &&result) const
 Reads from the buffer into a multi-channel result. More...
 
template<class Data >
void set (Data &&data)
 Writes from multi-channel data into the buffer. More...
 
template<class Data >
Strideoperator= (const Data &data)
 
Strideoperator= (const Stride &data)
 

Method Details

◆ get()

template<typename Sample >
template<bool isConst>
template<class Data >
void signalsmith::delay::MultiBuffer< Sample >::Stride< isConst >::get ( Data &&  result) const
inline

Reads from the buffer into a multi-channel result.

◆ set()

template<typename Sample >
template<bool isConst>
template<class Data >
void signalsmith::delay::MultiBuffer< Sample >::Stride< isConst >::set ( Data &&  data)
inline

Writes from multi-channel data into the buffer.