mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 02:18:30 +01:00
Fixed compile bug on linux
This commit is contained in:
parent
e5dbac4345
commit
5bb2f9bf05
@ -25,9 +25,14 @@ if (MSVC)
|
||||
else (MSVC)
|
||||
find_package(PkgConfig)
|
||||
|
||||
pkg_check_modules(SOAPY REQUIRED iio)
|
||||
pkg_check_modules(SOAPY REQUIRED libiio)
|
||||
pkg_check_modules(SOAPY REQUIRED libad9361)
|
||||
|
||||
target_include_directories(plutosdr_source PUBLIC ${IIO_INCLUDE_DIRS})
|
||||
target_link_directories(plutosdr_source PUBLIC ${IIO_LIBRARY_DIRS})
|
||||
target_link_libraries(plutosdr_source PUBLIC ${IIO_LIBRARIES})
|
||||
target_include_directories(plutosdr_source PUBLIC ${LIBIIO_INCLUDE_DIRS})
|
||||
target_link_directories(plutosdr_source PUBLIC ${LIBIIO_LIBRARY_DIRS})
|
||||
target_link_libraries(plutosdr_source PUBLIC ${LIBIIO_LIBRARIES})
|
||||
|
||||
target_include_directories(plutosdr_source PUBLIC ${LIBAD9361_INCLUDE_DIRS})
|
||||
target_link_directories(plutosdr_source PUBLIC ${LIBAD9361_LIBRARY_DIRS})
|
||||
target_link_libraries(plutosdr_source PUBLIC ${LIBAD9361_LIBRARIES})
|
||||
endif (MSVC)
|
@ -79,8 +79,8 @@ private:
|
||||
ImGui::BeginGroup();
|
||||
|
||||
// TODO: Change VFO ref in signal path
|
||||
|
||||
ImGui::Columns(3, CONCAT("RecordModeColumns##_", _this->name), false);
|
||||
// TODO: Add VFO record
|
||||
ImGui::Columns(2, CONCAT("RecordModeColumns##_", _this->name), false);
|
||||
if (ImGui::RadioButton(CONCAT("Baseband##_", _this->name), _this->recMode == 0) && _this->recMode != 0) {
|
||||
_this->recMode = 0;
|
||||
}
|
||||
@ -88,10 +88,6 @@ private:
|
||||
if (ImGui::RadioButton(CONCAT("Audio##_", _this->name), _this->recMode == 1) && _this->recMode != 1) {
|
||||
_this->recMode = 1;
|
||||
}
|
||||
ImGui::NextColumn();
|
||||
if (ImGui::RadioButton(CONCAT("VFO##_", _this->name), _this->recMode == 2) && _this->recMode != 2) {
|
||||
_this->recMode = 2;
|
||||
}
|
||||
ImGui::Columns(1, CONCAT("EndRecordModeColumns##_", _this->name), false);
|
||||
|
||||
ImGui::EndGroup();
|
||||
@ -209,6 +205,7 @@ private:
|
||||
dsp::stream<dsp::stereo_t>* audioStream;
|
||||
dsp::stream<dsp::complex_t>* iqStream;
|
||||
WavWriter* writer;
|
||||
VFOManager::VFO* vfo;
|
||||
std::thread workerThread;
|
||||
bool recording;
|
||||
time_t startTime;
|
||||
@ -217,6 +214,7 @@ private:
|
||||
int selectedStreamId;
|
||||
uint64_t samplesWritten;
|
||||
float sampleRate;
|
||||
float vfoSampleRate = 200000;
|
||||
int recMode = 0;
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user