mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-01 22:57:49 +02:00
fix source/samplerate selection bugs
This commit is contained in:
@ -194,7 +194,6 @@ public:
|
||||
|
||||
// Set samplerate
|
||||
samplerate = sampleRateList.value(srId);
|
||||
core::setInputSampleRate(samplerate.effective);
|
||||
|
||||
// Close device
|
||||
AARTSAAPI_CloseDevice(&api, &dev);
|
||||
@ -334,9 +333,10 @@ private:
|
||||
SmGui::FillWidth();
|
||||
SmGui::ForceSync();
|
||||
if (SmGui::Combo(CONCAT("##_spectran_dev_", _this->name), &_this->devId, _this->devList.txt)) {
|
||||
|
||||
_this->selectSerial(_this->devList.key(_this->devId));
|
||||
core::setInputSampleRate(_this->samplerate.effective);
|
||||
}
|
||||
// TODO: SR sel
|
||||
|
||||
if (SmGui::Combo(CONCAT("##_spectran_sr_", _this->name), &_this->srId, _this->sampleRateList.txt)) {
|
||||
_this->samplerate = _this->sampleRateList.value(_this->srId);
|
||||
core::setInputSampleRate(_this->samplerate.effective);
|
||||
|
Reference in New Issue
Block a user