ggwave : resampling fixes

The old output resampling was bugged and produced cracking in the audio
when the output sampling rate was different from the base sampling rate.

Additionally, the decoding wasn't properly handling resampled input in all
cases.
This commit is contained in:
Georgi Gerganov
2021-02-21 00:16:43 +02:00
parent f4fb02d5d4
commit 62b71c3322
3 changed files with 67 additions and 67 deletions

View File

@@ -437,6 +437,7 @@ private:
TxProtocol m_txProtocol;
AmplitudeData m_outputBlock;
AmplitudeData m_outputBlockResampled;
TxRxData m_outputBlockTmp;
AmplitudeDataI16 m_outputBlockI16;
AmplitudeDataI16 m_txAmplitudeDataI16;