commit b2165b52c3d5fadbcd9669ec500b615bbdc636b5
parent 93fa5281b981eefbe97e7dc85272597f16ac0a20
Author: Hans Petter Selasky <[email protected]>
Date: Sat, 19 Nov 2022 15:38:55 +0100
Automagically enable background synth when HAVE_BG_SYNTH_THREAD is set.
Fix #216
Signed-off-by: Hans Petter Selasky <[email protected]>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/Nio/AudioOut.cpp b/src/Nio/AudioOut.cpp
@@ -43,6 +43,9 @@ int AudioOut::getSampleRate()
void AudioOut::setBufferSize(int _bufferSize)
{
bufferSize = _bufferSize;
+#if HAVE_BG_SYNTH_THREAD
+ OutMgr::getInstance().setBackgroundSynth(_bufferSize < synth.buffersize);
+#endif
}
const Stereo<float *> AudioOut::getNext()