Changeset 3006:d0c79207f9ac in roaraudio


Ignore:
Timestamp:
10/27/09 18:17:29 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for speex prep, just need to add support to set options of the prep (MODE parameter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarphone.c

    r2995 r3006  
    6464   int downmix; 
    6565   float lowp_freq; 
     66   int speex_prep; 
    6667  } in; 
    6768 } filter; 
     
    117118 printf("  --afi-downmix        - Enable input downmixing\n" 
    118119        "  --afi-lowpass FREQ   - Enable input lowpass at FREQ (in Hz)\n" 
     120        "  --afi-speex-prep     - Enable speex preprocessor\n" 
    119121       ); 
    120122 
     
    432434   info.channels = atoi(argv[++i]); 
    433435 
    434 /* 
    435  printf("  --afi-downmix        - Enable input downmixing\n" 
    436         "  --afi-lowpass FREQ   - Enable input lowpass at FREQ (in Hz)\n" 
    437 */ 
    438436  } else if ( strcmp(k, "--afi-downmix") == 0 ) { 
    439437   g_conf.filter.in.downmix = 1; 
    440438  } else if ( strcmp(k, "--afi-lowpass") == 0 ) { 
    441439   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; 
    442442 
    443443  } else if ( strcmp(k, "--codec") == 0 ) { 
     
    586586 } 
    587587 
     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 
    588598#undef _err 
    589599 
Note: See TracChangeset for help on using the changeset viewer.