This commit is contained in:
Ryzerth 2020-12-06 17:57:44 +01:00
parent ca9d2c01af
commit c612620ca5

View File

@ -5,6 +5,7 @@
#include <signal_path/sink.h>
#include <portaudio.h>
#include <dsp/audio.h>
#include <spdlog/spdlog.h>
#define CONCAT(a, b) ((std::string(a) + b).c_str())
@ -144,6 +145,8 @@ private:
float sampleRate = dev->sampleRates[dev->srId];
int bufferSize = sampleRate / 60.0f;
spdlog::warn("Audio SamplRate: {0}", sampleRate);
if (dev->channels == 2) {
stereoRB.data.setMaxLatency(bufferSize * 2);
stereoRB.start();