commit 4773bc993b6373edd2f3be027d22995173493b50
parent 4b5b6208a78fb459b764eb451afb4d47f98cc143
Author: Johannes Lorenz <j.git@lorenz-ho.me>
Date: Mon, 26 Jun 2023 18:30:24 +0200
Fix warnings about useless `const`
Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Nio/AudioOut.cpp b/src/Nio/AudioOut.cpp
@@ -48,7 +48,7 @@ void AudioOut::setBufferSize(int _bufferSize)
#endif
}
-const Stereo<float *> AudioOut::getNext()
+Stereo<float *> AudioOut::getNext()
{
return OutMgr::getInstance().tick(bufferSize);
}
diff --git a/src/Nio/AudioOut.h b/src/Nio/AudioOut.h
@@ -47,7 +47,7 @@ class AudioOut:public virtual Engine
protected:
/**Get the next sample for output.
* (has nsamples sampled at a rate of samplerate)*/
- const Stereo<float *> getNext();
+ Stereo<float *> getNext();
const SYNTH_T &synth;
int samplerate;
diff --git a/src/Nio/OutMgr.cpp b/src/Nio/OutMgr.cpp
@@ -146,7 +146,7 @@ void OutMgr::refillSmps(unsigned int smpsLimit)
* 6) Lets return those samples to the primary and secondary outputs
* 7) Lets wait for another tick
*/
-const Stereo<float *> OutMgr::tick(unsigned int frameSize)
+Stereo<float *> OutMgr::tick(unsigned int frameSize)
{
auto retval = priBuf;
//SysEv->execute();
diff --git a/src/Nio/OutMgr.h b/src/Nio/OutMgr.h
@@ -34,7 +34,7 @@ class OutMgr
~OutMgr();
/**Execute a tick*/
- const Stereo<float *> tick(unsigned int frameSize) REALTIME;
+ Stereo<float *> tick(unsigned int frameSize) REALTIME;
/**Request a new set of samples
* @param n number of requested samples (defaults to 1)