added some fifo empy/full counters
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 3 May 2018 02:29:43 +0000 (02:29 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 3 May 2018 02:29:43 +0000 (02:29 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3560 01035d8c-6547-0410-b346-abe4f91aad63

freedv-dev/src/fdmdv2_main.cpp

index 7c937745aa0e501ad366110fe8f7fed95a523017..9a515e5e736164f43bac2397def77da185c50339 100644 (file)
@@ -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()
 {