From dfc7eefeec526c1c175fa520b0d85ee624fd6129 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 3 May 2018 02:29:43 +0000 Subject: [PATCH] added some fifo empy/full counters git-svn-id: https://svn.code.sf.net/p/freetel/code@3560 01035d8c-6547-0410-b346-abe4f91aad63 --- freedv-dev/src/fdmdv2_main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/freedv-dev/src/fdmdv2_main.cpp b/freedv-dev/src/fdmdv2_main.cpp index 7c937745..9a515e5e 100644 --- a/freedv-dev/src/fdmdv2_main.cpp +++ b/freedv-dev/src/fdmdv2_main.cpp @@ -1257,7 +1257,7 @@ void MainFrame::OnTimer(wxTimerEvent &evt) char fifo_counters[80]; sprintf(fifo_counters, "%d %d %d %d", g_infifo1_full, g_outfifo1_empty, g_infifo2_full, g_outfifo2_empty); - //wxString fifo_counters_string(fifo_counters); m_textFifos->SetLabel(fifo_counters_string); + wxString fifo_counters_string(fifo_counters); m_textFifos->SetLabel(fifo_counters_string); } @@ -1741,6 +1741,7 @@ void MainFrame::OnBerReset(wxCommandEvent& event) g_error_hist[i] = 0; g_error_histn[i] = 0; } + g_infifo1_full = g_outfifo1_empty = g_infifo2_full = g_outfifo2_empty = 0; } @@ -3221,6 +3222,7 @@ int resample(SRC_STATE *src, // speech signals at a low sample rate. We want a low sample rate so // we don't hammer the graphics system too hard. Saves decimated data // to a fifo for plotting on screen. + void resample_for_plot(struct FIFO *plotFifo, short buf[], int length, int fs) { int decimation = fs/WAVEFORM_PLOT_FS; @@ -3246,6 +3248,11 @@ void resample_for_plot(struct FIFO *plotFifo, short buf[], int length, int fs) fifo_write(plotFifo, dec_samples, nSamples); } + +//--------------------------------------------------------------------------------------------- +// Main real time procesing for tx and rx of FreeDV signals +//--------------------------------------------------------------------------------------------- + void txRxProcessing() { -- 2.25.1