mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 19:57:11 +01:00
commit
193580caf3
@ -44,7 +44,7 @@ Download the latest release from [the Releases page](https://github.com/Alexandr
|
|||||||
Then, run:
|
Then, run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt install libfftw3-dev libglfw3-dev libvolk2-dev libsoapysdr-dev libairspyhf-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev
|
sudo apt install libfftw3-dev libglfw3-dev libvolk2-dev libzstd-dev libsoapysdr-dev libairspyhf-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev
|
||||||
sudo dpkg -i sdrpp_debian_amd64.deb
|
sudo dpkg -i sdrpp_debian_amd64.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -137,6 +137,10 @@ public:
|
|||||||
hackrf_device_list_t* _devList = hackrf_device_list();
|
hackrf_device_list_t* _devList = hackrf_device_list();
|
||||||
|
|
||||||
for (int i = 0; i < _devList->devicecount; i++) {
|
for (int i = 0; i < _devList->devicecount; i++) {
|
||||||
|
// Skip devices that are in use
|
||||||
|
if (_devList->serial_numbers[i] == NULL) { continue; }
|
||||||
|
|
||||||
|
// Save the device serial number
|
||||||
devList.push_back(_devList->serial_numbers[i]);
|
devList.push_back(_devList->serial_numbers[i]);
|
||||||
devListTxt += (char*)(_devList->serial_numbers[i] + 16);
|
devListTxt += (char*)(_devList->serial_numbers[i] + 16);
|
||||||
devListTxt += '\0';
|
devListTxt += '\0';
|
||||||
|
@ -523,8 +523,8 @@ private:
|
|||||||
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
|
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
|
||||||
int sampCount = len / 2;
|
int sampCount = len / 2;
|
||||||
for (int i = 0; i < sampCount; i++) {
|
for (int i = 0; i < sampCount; i++) {
|
||||||
_this->stream.writeBuf[i].re = (float)(buf[i * 2] - 127) / 128.0f;
|
_this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f;
|
||||||
_this->stream.writeBuf[i].im = (float)(buf[(i * 2) + 1] - 127) / 128.0f;
|
_this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f;
|
||||||
}
|
}
|
||||||
if (!_this->stream.swap(sampCount)) { return; }
|
if (!_this->stream.swap(sampCount)) { return; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user