Changeset 3010:f853cab15d30 in roaraudio


Ignore:
Timestamp:
10/28/09 15:33:12 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

started with AGC filter

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/libroardsp.h

    r3004 r3010  
    181181struct roardsp_agc { 
    182182 struct roardsp_filter * amp; 
     183 uint32_t target_amp; 
    183184}; 
    184185 
     
    196197char * roardsp_filter_id2str(int id); 
    197198int    roardsp_filter_new   (struct roardsp_filter ** filter, struct roar_stream * stream, int id); 
    198 #define roardsp_filter_free(x) roar_dsp_filter_uninit((x)) 
     199#define roardsp_filter_free(x) roardsp_filter_uninit((x)) 
    199200int    roardsp_filter_init  (struct roardsp_filter *  filter, struct roar_stream * stream, int id); 
    200201int    roardsp_filter_uninit(struct roardsp_filter *  filter); 
     
    263264int roardsp_swap_reset  (struct roardsp_filter * filter, int what); 
    264265 
     266int roardsp_agc_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id); 
     267int roardsp_agc_uninit (struct roardsp_filter * filter); 
     268int roardsp_agc_ctl    (struct roardsp_filter * filter, int cmd, void * data); 
     269int roardsp_agc_reset  (struct roardsp_filter * filter, int what); 
     270 
    265271#ifdef _SPEEX_TYPES_H 
    266272int roardsp_speex_prep_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id); 
  • libroardsp/Makefile

    r2992 r3010  
    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 
    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_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 
    1010MIDI=synth.o 
    1111CODECS=alaw.o mulaw.o 
  • libroardsp/filter.c

    r3002 r3010  
    5454 {ROARDSP_FILTER_SWAP, "Swap", roardsp_swap_init, roardsp_swap_uninit, roardsp_swap_ctl, roardsp_swap_reset, { 
    5555           {NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, roardsp_swap_calc162},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
     56 {ROARDSP_FILTER_AGC, "AGC", roardsp_agc_init, roardsp_agc_uninit, roardsp_agc_ctl, roardsp_agc_reset, { 
     57           {NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
    5658 {ROARDSP_FILTER_SPEEX_PREP, "SpeexPrep", roardsp_speex_prep_init, roardsp_speex_prep_uninit, 
    5759                                          roardsp_speex_prep_ctl,  roardsp_speex_prep_reset, { 
Note: See TracChangeset for help on using the changeset viewer.