1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

Revert "FreeDV modulator: fixed FreeDV arrays initialization"

This reverts commit d5c1b2be97.
This commit is contained in:
f4exb 2019-02-26 00:09:58 +01:00
parent c8f5be10d2
commit 5dbf374d0f

View File

@ -692,27 +692,18 @@ void FreeDVMod::applyFreeDVMode(FreeDVModSettings::FreeDVMode mode)
int nNomModemSamples = freedv_get_n_nom_modem_samples(m_freeDV);
int Fs = freedv_get_modem_sample_rate(m_freeDV);
int Rs = freedv_get_modem_symbol_rate(m_freeDV);
if (nSpeechSamples != m_nSpeechSamples)
{
if (m_speechIn) {
delete[] m_speechIn;
}
m_speechIn = new int16_t[m_nSpeechSamples];
m_nSpeechSamples = nSpeechSamples;
if ((m_speechIn) && (nSpeechSamples != m_nSpeechSamples)) {
delete[] m_speechIn;
}
if (nNomModemSamples != m_nNomModemSamples)
{
if (m_modOut) {
delete[] m_modOut;
}
m_modOut = new int16_t[m_nNomModemSamples];
m_nNomModemSamples = nNomModemSamples;
if ((m_modOut) && (nNomModemSamples != m_nNomModemSamples)) {
delete[] m_modOut;
}
m_nSpeechSamples = nSpeechSamples;
m_nNomModemSamples = nNomModemSamples;
m_speechIn = new int16_t[m_nSpeechSamples];
m_modOut = new int16_t[m_nNomModemSamples];
m_iSpeech = 0;
m_iModem = 0;