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:
Johannes Lorenz
2020-09-21 09:04:44 +02:00
committed by GitHub
parent 2f37281d02
commit 6d160fd773
7 changed files with 24 additions and 74 deletions

View File

@@ -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;

View File

@@ -45,7 +45,7 @@ public:
m_feedback = feedback;
}
void tick( sampleFrame frame );
void tick( sampleFrame& frame );
void setSampleRate( int sampleRate );
private: