Move init of sox outside of assert calls
authorshenki <shenki@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 6 Jun 2013 09:00:35 +0000 (09:00 +0000)
committershenki <shenki@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 6 Jun 2013 09:00:35 +0000 (09:00 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1310 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/src/sox_biquad.c

index 132facf07cad8bdcc6c01f5dd871943e6c67233d..0403beb287674ebe1644bd0c3b196a18d4657b53 100644 (file)
@@ -40,7 +40,8 @@ int lsx_biquad_flow(sox_effect_t * effp, const sox_sample_t *ibuf,
 void sox_biquad_start(void)
 {
     printf("sox_biquad_start(void)\n");
-    assert(sox_init() == SOX_SUCCESS);
+    int r = sox_init();
+    assert(r == SOX_SUCCESS);
 }
 
 void sox_biquad_finish(void)
@@ -64,7 +65,8 @@ void *sox_biquad_create(int argc, const char *argv[])
     int (*start)(sox_effect_t *); /* function pointer to effect start func */
     
     e = sox_create_effect(sox_find_effect(argv[0])); assert(e != NULL);
-    assert(sox_effect_options(e, argc, (char * const*)&argv[1]) == SOX_SUCCESS);
+    ret = sox_effect_options(e, argc, (char * const*)&argv[1]);
+    assert(ret == SOX_SUCCESS);
 
     start = e->handler.start;
     e->in_signal.rate = 8000;     /* locked at FS=8000 Hz */