Changeset 882:d2125824428f in roaraudio
- Timestamp:
- 11/19/08 21:18:27 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroardsp/libroardsp.h
r874 r882 77 77 }; 78 78 79 struct roardsp_amp { 80 int32_t mul; 81 int32_t div; 82 }; 83 79 84 // funcs: 80 85 int roardsp_filter_str2id(char * str); … … 103 108 int roardsp_highp_ctl (struct roardsp_filter * filter, int cmd, void * data); 104 109 110 int roardsp_amp_init (struct roardsp_filter * filter, struct roar_stream * stream, int id); 111 int roardsp_amp_uninit(struct roardsp_filter * filter); 112 int roardsp_amp_calc16(struct roardsp_filter * filter, void * data, size_t samples); 113 int roardsp_amp_calc8 (struct roardsp_filter * filter, void * data, size_t samples); 114 int roardsp_amp_ctl (struct roardsp_filter * filter, int cmd, void * data); 115 105 116 // codecs: 106 117 int roardsp_conv_alaw2pcm16 (int16_t * out, char * in, size_t len); -
libroardsp/Makefile
r734 r882 4 4 OBJS=libroardsp.o filter.o filterchain.o alaw.o 5 5 OLDROAR=midi.o 6 FILTER=lowp.o highp.o 6 FILTER=lowp.o highp.o amp.o 7 7 8 8 #DEFINES = -DDEBUG -
libroardsp/filter.c
r683 r882 33 33 int (*calc [5][3])(struct roardsp_filter * filter, void * data, size_t samples); 34 34 } _roardsp_filterlist[] = { 35 {ROARDSP_FILTER_AMP, "AMP", NULL, NULL, NULL, {36 {NULL, NULL, NULL},{ NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}},35 {ROARDSP_FILTER_AMP, "AMP", roardsp_amp_init, roardsp_amp_uninit, roardsp_amp_ctl, { 36 {NULL, NULL, NULL},{roardsp_amp_calc8, NULL, NULL},{roardsp_amp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}}, 37 37 {ROARDSP_FILTER_LOWP, "Lowpass", roardsp_lowp_init, roardsp_lowp_uninit, roardsp_lowp_ctl, { 38 38 {NULL, NULL, NULL},{NULL, NULL, NULL},{roardsp_lowp_calc16, NULL, NULL},{NULL, NULL, NULL},{NULL, NULL, NULL}}},
Note: See TracChangeset
for help on using the changeset viewer.