Changeset 5269:b914e5b61703 in roaraudio for libroardsp


Ignore:
Timestamp:
11/17/11 00:32:28 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

start of a response curve filter

Location:
libroardsp
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/Makefile

    r4748 r5269  
    77OBJS=libroardsp.o convert.o midside.o poly.o filter.o filterchain.o remove.o transcode.o vio_transcode.o rms.o fader.o mixer.o amp.o interleave.o channels.o resampler_poly3.o float.o 
    88OLDROAR=midi.o 
    9 FILTER=filter_lowp.o filter_highp.o filter_amp.o filter_quantify.o filter_add.o filter_clip.o filter_downmix.o filter_dcblock.o filter_swap.o filter_agc.o filter_speex_prep.o 
     9FILTER=filter_lowp.o filter_highp.o filter_amp.o filter_quantify.o filter_add.o filter_clip.o filter_downmix.o filter_dcblock.o filter_swap.o filter_agc.o filter_speex_prep.o filter_responsecurve.o 
    1010MIDI=synth.o 
    1111CODECS=alaw.o mulaw.o 
  • libroardsp/filter.c

    r5181 r5269  
    6969           {NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, roardsp_speex_prep_calc161, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
    7070#endif 
     71 {ROARDSP_FILTER_RESPONSE_CURVE, "ResponseCurve", roardsp_responsecurve_init, roardsp_responsecurve_uninit, 
     72                                                  roardsp_responsecurve_ctl, roardsp_responsecurve_reset, { 
     73           {NULL, NULL, NULL},{roardsp_responsecurve_calc8, NULL, NULL},{roardsp_responsecurve_calc16, NULL, NULL}, 
     74           {NULL, NULL, NULL},{roardsp_responsecurve_calc32, NULL, NULL} 
     75 }}, 
    7176 {-1, NULL, NULL, NULL, NULL, NULL, { 
    7277      // ?                  8Bit               16Bit              24Bit              32Bit 
     
    7580}; 
    7681 
    77 int    roardsp_filter_str2id(char * str) { 
     82int    roardsp_filter_str2id(const char * str) { 
    7883 struct _roardsp_filterlist * l = _roardsp_filterlist; 
    7984 
     
    8893} 
    8994 
    90 char * roardsp_filter_id2str(int id) { 
     95const char * roardsp_filter_id2str(const int id) { 
    9196 struct _roardsp_filterlist * l = _roardsp_filterlist; 
    9297 
     
    170175 filter->reset  = l->reset; 
    171176 
     177 ROAR_DBG("roardsp_filter_init(filter=%p, stream=%p, id=%i): bytes=%i", filter, stream, id, bytes); 
     178 
    172179 if ( filter->channels < 3 ) 
    173180  calc = l->calc[bytes][filter->channels]; 
Note: See TracChangeset for help on using the changeset viewer.