added some debug code to trap reported sox lib errors
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 11 Dec 2012 00:31:12 +0000 (00:31 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 11 Dec 2012 00:31:12 +0000 (00:31 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1131 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/src/fdmdv2_main.cpp
fdmdv2/src/sox_biquad.c

index 873b6fef9b457df9c4e39f9fe70ddd88ae863e80..6a11f7e686e208879f66ebd56362818139b119ae 100644 (file)
@@ -2351,7 +2351,7 @@ int MainFrame::rxCallback(
         indata[i] = *rptr;
     }
     if (fifo_write(cbData->infifo1, indata, framesPerBuffer)) {
-        wxLogDebug("infifo1 full\n");
+        //wxLogDebug("infifo1 full\n");
     }
 
     // OK now set up output samples for this callback
@@ -2367,7 +2367,7 @@ int MainFrame::rxCallback(
     }
     else
     {
-        wxLogDebug("outfifo1 empty\n");
+        //wxLogDebug("outfifo1 empty\n");
         // zero output if no data available
         for(i = 0; i < framesPerBuffer; i++, wptr += 2)
         {
index 5687d8f8185519e928bfe18e6ca49dbcc263313c..132facf07cad8bdcc6c01f5dd871943e6c67233d 100644 (file)
@@ -39,12 +39,14 @@ int lsx_biquad_flow(sox_effect_t * effp, const sox_sample_t *ibuf,
 
 void sox_biquad_start(void)
 {
-  assert(sox_init() == SOX_SUCCESS);
+    printf("sox_biquad_start(void)\n");
+    assert(sox_init() == SOX_SUCCESS);
 }
 
 void sox_biquad_finish(void)
 {
-  sox_quit();
+    printf("sox_biquad_finish(void)\n");
+    sox_quit();
 }
 
 /*