mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-07-12 05:44:08 -04:00
Demodulator now has it's own spectrum view
This commit is contained in:
@@ -34,8 +34,8 @@ void DemodulatorWorkerThread::threadMain() {
|
||||
if (filterChanged) {
|
||||
DemodulatorWorkerThreadResult result(DemodulatorWorkerThreadResult::DEMOD_WORKER_THREAD_RESULT_FILTERS);
|
||||
|
||||
result.resample_ratio = (float) (filterCommand.bandwidth) / (float) filterCommand.inputRate;
|
||||
result.audio_resample_ratio = (float) (filterCommand.audioSampleRate) / (float) filterCommand.bandwidth;
|
||||
result.resample_ratio = (double) (filterCommand.bandwidth) / (double) filterCommand.inputRate;
|
||||
result.audio_resample_ratio = (double) (filterCommand.audioSampleRate) / (double) filterCommand.bandwidth;
|
||||
|
||||
float As = 60.0f; // stop-band attenuation [dB]
|
||||
|
||||
@@ -46,8 +46,8 @@ void DemodulatorWorkerThread::threadMain() {
|
||||
result.audioSampleRate = filterCommand.audioSampleRate;
|
||||
result.bandwidth = filterCommand.bandwidth;
|
||||
result.inputRate = filterCommand.inputRate;
|
||||
|
||||
resultQueue->push(result);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(30));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user