mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-10 13:40:37 -04:00
SSB mod: base audio compressor sample rate on audio sample rate
This commit is contained in:
parent
8de5ab4b14
commit
0e98dbd938
@ -51,7 +51,7 @@ This is the constellation of the PSK or QAM synchronized signal. When the demodu
|
||||
<h5>B.2a.1: DATV standard</h5>
|
||||
|
||||
- DVB-S: DVB-S
|
||||
- DVB-S2: DVB-S3 and some DVB-S2X
|
||||
- DVB-S2: DVB-S2 and some DVB-S2X
|
||||
|
||||
<h5>B.2a.2: Modulation type</h5>
|
||||
|
||||
|
@ -108,7 +108,7 @@ SSBMod::SSBMod(DeviceAPI *deviceAPI) :
|
||||
|
||||
|
||||
m_audioCompressor.initSimple(
|
||||
48000, // fixed 48 kS/s sample rate for audio
|
||||
m_audioSampleRate,
|
||||
50, // pregain (dB)
|
||||
-30, // threshold (dB)
|
||||
20, // knee (dB)
|
||||
@ -711,6 +711,9 @@ void SSBMod::applyAudioSampleRate(int sampleRate)
|
||||
m_toneNco.setFreq(m_settings.m_toneFrequency, sampleRate);
|
||||
m_cwKeyer.setSampleRate(sampleRate);
|
||||
|
||||
m_audioCompressor.m_rate = sampleRate;
|
||||
m_audioCompressor.initState();
|
||||
|
||||
m_settingsMutex.unlock();
|
||||
|
||||
m_audioSampleRate = sampleRate;
|
||||
|
Loading…
Reference in New Issue
Block a user