basics: Change sampleFrame to use std::array (#5536)
... in order to make standard containers be able to store it. Required for #5532 (#4899) and the recording PR. This includes: * removing the `LocklessRingBuffer<sampleFrame>` specialization * passing samplerame in `StereoDelay::tick` as a reference Additional cleanups: * removing already unused typedef `sampleFrameA` * add some `const_cast` to make code more readable
This commit is contained in:
@@ -55,7 +55,7 @@ StereoDelay::~StereoDelay()
|
||||
|
||||
|
||||
|
||||
void StereoDelay::tick( sampleFrame frame )
|
||||
void StereoDelay::tick( sampleFrame& frame )
|
||||
{
|
||||
m_writeIndex = ( m_writeIndex + 1 ) % ( int )m_maxLength;
|
||||
int readIndex = m_writeIndex - m_length;
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
m_feedback = feedback;
|
||||
}
|
||||
|
||||
void tick( sampleFrame frame );
|
||||
void tick( sampleFrame& frame );
|
||||
void setSampleRate( int sampleRate );
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user