Changeset 2977:60f2e8ce2816 in roaraudio
- Timestamp:
- 10/23/09 12:01:51 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarphone.c
r2925 r2977 72 72 73 73 struct { 74 struct roardsp_filterchain input; 75 struct roardsp_filterchain output; 76 } g_filterchains; 77 78 struct { 74 79 struct { 75 80 char key[ROAR_META_MAX_NAMELEN]; … … 313 318 break; 314 319 320 if ( roardsp_fchain_num(&(g_filterchains.input)) ) { 321 if ( roardsp_fchain_calc(&(g_filterchains.input), micbuf, len) == -1 ) 322 break; 323 } 324 315 325 if ( g_conf.dtx_threshold > 0 ) 316 326 if ( info->bits == 16 ) … … 338 348 if ( g_conf.antiecho != AE_NONE && info->bits == 16 ) 339 349 anti_echo16(outbuf, micbuf, ROAR_MIN(miclen, outlen)/2, info); 350 351 if ( roardsp_fchain_num(&(g_filterchains.output)) ) { 352 if ( roardsp_fchain_calc(&(g_filterchains.output), outbuf, outlen) == -1 ) 353 break; 354 } 340 355 341 356 if ( roar_vio_write(s0, outbuf, outlen) != outlen ) … … 371 386 372 387 memset(&g_meta, 0, sizeof(g_meta)); 388 389 roardsp_fchain_init(&(g_filterchains.input)); 390 roardsp_fchain_init(&(g_filterchains.output)); 373 391 374 392 for (i = 1; i < argc; i++) { … … 515 533 roar_vio_close(&dvio); 516 534 535 roardsp_fchain_uninit(&(g_filterchains.input)); 536 roardsp_fchain_uninit(&(g_filterchains.output)); 537 517 538 roar_disconnect(&(g_cons.con)); 518 539
Note: See TracChangeset
for help on using the changeset viewer.