Changeset 1587:9da570b3c375 in roaraudio


Ignore:
Timestamp:
04/15/09 22:23:23 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added subs for filter swap

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/libroardsp.h

    r1371 r1587  
    4747#define ROARDSP_FILTER_DOWNMIX        8 
    4848#define ROARDSP_FILTER_DCBLOCK        9 
     49#define ROARDSP_FILTER_SWAP          10 
    4950 
    5051// filter CTLs: 
     
    116117}; 
    117118 
     119struct roardsp_swap { 
     120 int map[ROAR_MAX_CHANNELS]; 
     121}; 
     122 
    118123// funcs: 
    119124int    roardsp_filter_str2id(char * str); 
     
    179184int roardsp_dcblock_reset  (struct roardsp_filter * filter, int what); 
    180185 
     186int roardsp_swap_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id); 
     187int roardsp_swap_uninit (struct roardsp_filter * filter); 
     188int roardsp_swap_calc162(struct roardsp_filter * filter, void * data, size_t samples); 
     189int roardsp_swap_ctl    (struct roardsp_filter * filter, int cmd, void * data); 
     190int roardsp_swap_reset  (struct roardsp_filter * filter, int what); 
     191 
    181192// codecs: 
    182193int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len); 
  • libroardsp/filter.c

    r1141 r1587  
    5252 {ROARDSP_FILTER_DCBLOCK, "DCBlock", roardsp_dcblock_init, NULL, NULL, roardsp_dcblock_reset, { 
    5353           {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_dcblock_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
     54 {ROARDSP_FILTER_SWAP, "Swap", roardsp_swap_init, roardsp_swap_uninit, roardsp_swap_ctl, roardsp_swap_reset, { 
     55           {NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, roardsp_swap_calc162, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 
    5456 {-1, NULL, NULL, NULL, NULL, NULL, { 
    5557      // ?                  8Bit               16Bit              24Bit              32Bit 
  • libroardsp/filter_swap.c

    r1586 r1587  
    2525#include "libroardsp.h" 
    2626 
     27int roardsp_swap_init   (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 
     28 return -1; 
     29} 
     30 
     31int roardsp_swap_uninit (struct roardsp_filter * filter) { 
     32 return -1; 
     33} 
     34 
     35int roardsp_swap_calc162(struct roardsp_filter * filter, void * data, size_t samples) { 
     36 return -1; 
     37} 
     38 
     39int roardsp_swap_ctl    (struct roardsp_filter * filter, int cmd, void * data) { 
     40 return -1; 
     41} 
     42 
     43int roardsp_swap_reset  (struct roardsp_filter * filter, int what) { 
     44 return -1; 
     45} 
    2746 
    2847//ll 
Note: See TracChangeset for help on using the changeset viewer.