Changeset 3006:d0c79207f9ac in roaraudio
- Timestamp:
- 10/27/09 18:17:29 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarphone.c
r2995 r3006 64 64 int downmix; 65 65 float lowp_freq; 66 int speex_prep; 66 67 } in; 67 68 } filter; … … 117 118 printf(" --afi-downmix - Enable input downmixing\n" 118 119 " --afi-lowpass FREQ - Enable input lowpass at FREQ (in Hz)\n" 120 " --afi-speex-prep - Enable speex preprocessor\n" 119 121 ); 120 122 … … 432 434 info.channels = atoi(argv[++i]); 433 435 434 /*435 printf(" --afi-downmix - Enable input downmixing\n"436 " --afi-lowpass FREQ - Enable input lowpass at FREQ (in Hz)\n"437 */438 436 } else if ( strcmp(k, "--afi-downmix") == 0 ) { 439 437 g_conf.filter.in.downmix = 1; 440 438 } else if ( strcmp(k, "--afi-lowpass") == 0 ) { 441 439 g_conf.filter.in.lowp_freq = atof(argv[++i]); 440 } else if ( strcmp(k, "--afi-speex-prep") == 0 ) { 441 g_conf.filter.in.speex_prep = 1; 442 442 443 443 } else if ( strcmp(k, "--codec") == 0 ) { … … 586 586 } 587 587 588 if ( g_conf.filter.in.speex_prep ) { 589 if ( roardsp_filter_new(&filter, &(g_cons.stream), ROARDSP_FILTER_SPEEX_PREP) == -1 ) { 590 _err(2); 591 } 592 593 if ( roardsp_fchain_add(&(g_filterchains.input), filter) == -1 ) { 594 _err(2); 595 } 596 } 597 588 598 #undef _err 589 599
Note: See TracChangeset
for help on using the changeset viewer.