1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-24 11:04:10 -04:00

Fixed audio FIFO write overflows in modulators using audio input. Also fixes #1236 in SSB modulator

This commit is contained in:
f4exb
2022-05-17 19:55:40 +02:00
parent 7a8cab7879
commit cc8b2e6462
12 changed files with 76 additions and 26 deletions
@@ -39,6 +39,8 @@ WFMModSource::WFMModSource() :
m_ifstream(nullptr),
m_mutex(QMutex::Recursive)
{
m_audioFifo.setLabel("WFMModSource.m_audioFifo");
m_feedbackAudioFifo.setLabel("WFMModSource.m_feedbackAudioFifo");
m_rfFilter = new fftfilt(-62500.0 / 384000.0, 62500.0 / 384000.0, m_rfFilterFFTLength);
m_rfFilterBuffer = new Complex[m_rfFilterFFTLength];
std::fill(m_rfFilterBuffer, m_rfFilterBuffer+m_rfFilterFFTLength, Complex{0,0});