From cc559f9e698c0e465fa29435eb7c92c502fa4f41 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 27 Jul 2023 02:38:19 +0200 Subject: [PATCH] increase buffering --- SoapyRadioberry-Release.vgdbsettings | 2 +- SoapyRadioberry.hpp | 1 - SoapyRadioberry.vcxproj | 2 +- SoapyRadioberryStreaming.cpp | 3 ++- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SoapyRadioberry-Release.vgdbsettings b/SoapyRadioberry-Release.vgdbsettings index c029998..0731864 100644 --- a/SoapyRadioberry-Release.vgdbsettings +++ b/SoapyRadioberry-Release.vgdbsettings @@ -8,7 +8,7 @@ true - 192.168.88.24 + 192.168.88.41 SSH pi diff --git a/SoapyRadioberry.hpp b/SoapyRadioberry.hpp index 09426b3..0a7432b 100644 --- a/SoapyRadioberry.hpp +++ b/SoapyRadioberry.hpp @@ -16,7 +16,6 @@ #define TX_MAX 4800 #define TX_MAX_BUFFER (TX_MAX * 8) -const int npackages = 4; typedef enum radioberrysdrStreamFormat { RADIOBERRY_SDR_CF32, diff --git a/SoapyRadioberry.vcxproj b/SoapyRadioberry.vcxproj index 5e9b96a..5fcb432 100644 --- a/SoapyRadioberry.vcxproj +++ b/SoapyRadioberry.vcxproj @@ -37,7 +37,7 @@ libSoapyRadioberrySDR - 192.168.88.24 + 192.168.88.41 com.sysprogs.toolchain.default-gcc DynamicLibrary diff --git a/SoapyRadioberryStreaming.cpp b/SoapyRadioberryStreaming.cpp index 7b5c2a6..286d9ea 100644 --- a/SoapyRadioberryStreaming.cpp +++ b/SoapyRadioberryStreaming.cpp @@ -159,7 +159,8 @@ int SoapyRadioberry::readStream( const long timeoutUs ) { int nr_samples, no_bytes, iq=0; - + int npackages = numElems / 63; + void *buff_base = buffs[0]; float *target_buffer = (float *) buff_base; int16_t *itarget_buffer = (int16_t *) buff_base;