Changeset 979:2d5a48c15b5f in roaraudio
- Timestamp:
- 12/17/08 21:10:55 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroardsp/libroardsp.h
r922 r979 39 39 #define ROARDSP_FILTER_LOWP 2 40 40 #define ROARDSP_FILTER_HIGHP 3 41 #define ROARDSP_FILTER_MODULATE 4 42 #define ROARDSP_FILTER_QUANTIFY 5 43 #define ROARDSP_FILTER_CLIP 6 44 #define ROARDSP_FILTER_ADD 7 41 45 42 46 // filter CTLs: … … 46 50 #define ROARDSP_FCTL_MUL 3 47 51 #define ROARDSP_FCTL_DIV 4 52 #define ROARDSP_FCTL_N 5 53 #define ROARDSP_FCTL_LIMIT 6 54 #define ROARDSP_FCTL_PHASE 7 48 55 49 56 // types: … … 114 121 int roardsp_amp_ctl (struct roardsp_filter * filter, int cmd, void * data); 115 122 123 int roardsp_add_init (struct roardsp_filter * filter, struct roar_stream * stream, int id); 124 int roardsp_add_calc16(struct roardsp_filter * filter, void * data, size_t samples); 125 126 int roardsp_quantify_init (struct roardsp_filter * filter, struct roar_stream * stream, int id); 127 int roardsp_quantify_uninit(struct roardsp_filter * filter); 128 int roardsp_quantify_calc16(struct roardsp_filter * filter, void * data, size_t samples); 129 int roardsp_quantify_ctl (struct roardsp_filter * filter, int cmd, void * data); 130 131 int roardsp_clip_init (struct roardsp_filter * filter, struct roar_stream * stream, int id); 132 int roardsp_clip_calc16(struct roardsp_filter * filter, void * data, size_t samples); 133 int roardsp_clip_ctl (struct roardsp_filter * filter, int cmd, void * data); 134 116 135 // codecs: 117 136 int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len); -
libroardsp/Makefile
r922 r979 4 4 OBJS=libroardsp.o filter.o filterchain.o alaw.o mulaw.o 5 5 OLDROAR=midi.o 6 FILTER=lowp.o highp.o amp.o 6 FILTER=lowp.o highp.o amp.o quantify.o add.o clip.o 7 7 8 8 #DEFINES = -DDEBUG -
libroardsp/filter.c
r882 r979 35 35 {ROARDSP_FILTER_AMP, "AMP", roardsp_amp_init, roardsp_amp_uninit, roardsp_amp_ctl, { 36 36 {NULL, NULL, NULL},{roardsp_amp_calc8, NULL, NULL},{roardsp_amp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 37 {ROARDSP_FILTER_ADD, "Add", roardsp_add_init, roardsp_amp_uninit, roardsp_amp_ctl, { 38 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_add_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 37 39 {ROARDSP_FILTER_LOWP, "Lowpass", roardsp_lowp_init, roardsp_lowp_uninit, roardsp_lowp_ctl, { 38 40 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_lowp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 39 41 {ROARDSP_FILTER_HIGHP, "Highpass", roardsp_highp_init, roardsp_highp_uninit, roardsp_highp_ctl, { 40 42 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_highp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 43 {ROARDSP_FILTER_QUANTIFY, "Quantifier", roardsp_quantify_init, NULL, roardsp_quantify_ctl, { 44 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_quantify_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 45 {ROARDSP_FILTER_CLIP, "Clip", roardsp_clip_init, NULL, roardsp_clip_ctl, { 46 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_clip_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 41 47 {-1, NULL, NULL, NULL, NULL, { 42 48 // ? 8Bit 16Bit 24Bit 32Bit
Note: See TracChangeset
for help on using the changeset viewer.