Merge branch 'AlexandreRouma:master' into patch-1

This commit is contained in:
Dr. Rubisco 2021-07-27 12:20:12 -04:00 committed by GitHub
commit a4240ab8a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -76,6 +76,7 @@ namespace sourecmenu {
auto it = std::find(sourceNames.begin(), sourceNames.end(), name);
if (it == sourceNames.end()) {
selectSource(sourceNames[0]);
return;
}
sourceId = std::distance(sourceNames.begin(), it);
selectedSource = sourceNames[sourceId];

View File

@ -1,3 +1,3 @@
#pragma once
#define VERSION_STR "0.3.0_beta"
#define VERSION_STR "1.0.0_rc1"

View File

@ -116,7 +116,11 @@ public:
cbFuncs.StreamACbFn = streamCB;
cbFuncs.StreamBCbFn = streamCB;
sdrplay_api_Open();
sdrplay_api_ErrT err = sdrplay_api_Open();
if (err != sdrplay_api_Success) {
spdlog::error("Could not intiatialized the SDRplay API. Make sure that the service is running.");
return;
}
sampleRate = 2000000.0;
srId = 0;