mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 10:28:28 +01:00
testing
This commit is contained in:
parent
ca9d2c01af
commit
c612620ca5
@ -5,6 +5,7 @@
|
|||||||
#include <signal_path/sink.h>
|
#include <signal_path/sink.h>
|
||||||
#include <portaudio.h>
|
#include <portaudio.h>
|
||||||
#include <dsp/audio.h>
|
#include <dsp/audio.h>
|
||||||
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
#define CONCAT(a, b) ((std::string(a) + b).c_str())
|
||||||
|
|
||||||
@ -144,6 +145,8 @@ private:
|
|||||||
float sampleRate = dev->sampleRates[dev->srId];
|
float sampleRate = dev->sampleRates[dev->srId];
|
||||||
int bufferSize = sampleRate / 60.0f;
|
int bufferSize = sampleRate / 60.0f;
|
||||||
|
|
||||||
|
spdlog::warn("Audio SamplRate: {0}", sampleRate);
|
||||||
|
|
||||||
if (dev->channels == 2) {
|
if (dev->channels == 2) {
|
||||||
stereoRB.data.setMaxLatency(bufferSize * 2);
|
stereoRB.data.setMaxLatency(bufferSize * 2);
|
||||||
stereoRB.start();
|
stereoRB.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user