mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
Revert "FreeDV modulator: fixed FreeDV arrays initialization"
This reverts commit d5c1b2be97
.
This commit is contained in:
parent
c8f5be10d2
commit
5dbf374d0f
@ -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) {
|
||||
if ((m_speechIn) && (nSpeechSamples != m_nSpeechSamples)) {
|
||||
delete[] m_speechIn;
|
||||
}
|
||||
|
||||
m_speechIn = new int16_t[m_nSpeechSamples];
|
||||
m_nSpeechSamples = nSpeechSamples;
|
||||
}
|
||||
|
||||
if (nNomModemSamples != m_nNomModemSamples)
|
||||
{
|
||||
if (m_modOut) {
|
||||
if ((m_modOut) && (nNomModemSamples != m_nNomModemSamples)) {
|
||||
delete[] m_modOut;
|
||||
}
|
||||
|
||||
m_modOut = new int16_t[m_nNomModemSamples];
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user