Changeset 3001:98395340e261 in roaraudio for libroardsp
- Timestamp:
- 10/27/09 12:01:55 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libroardsp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/filter_add.c
r1141 r3001 26 26 27 27 int roardsp_add_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 28 struct roardsp_amp * self = malloc(sizeof(struct roardsp_amp));28 struct roardsp_amp * self = roar_mm_malloc(sizeof(struct roardsp_amp)); 29 29 30 30 if ( self == NULL ) -
libroardsp/filter_amp.c
r1141 r3001 26 26 27 27 int roardsp_amp_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 28 struct roardsp_amp * self = malloc(sizeof(struct roardsp_amp));28 struct roardsp_amp * self = roar_mm_malloc(sizeof(struct roardsp_amp)); 29 29 30 30 if ( self == NULL ) … … 42 42 int roardsp_amp_uninit(struct roardsp_filter * filter) { 43 43 44 free(filter->inst);44 roar_mm_free(filter->inst); 45 45 return 0; 46 46 } -
libroardsp/filter_dcblock.c
r1135 r3001 26 26 27 27 int roardsp_dcblock_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 28 struct roardsp_dcblock * inst = malloc(sizeof(struct roardsp_dcblock));28 struct roardsp_dcblock * inst = roar_mm_malloc(sizeof(struct roardsp_dcblock)); 29 29 // roardsp_downmix_ctl(filter, ROARDSP_FCTL_MODE, &mode); 30 30 … … 49 49 return -1; 50 50 51 free(filter->inst);51 roar_mm_free(filter->inst); 52 52 53 53 return 0; -
libroardsp/filter_highp.c
r1141 r3001 28 28 29 29 int roardsp_highp_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 30 struct roardsp_highp * self = malloc(sizeof(struct roardsp_highp));30 struct roardsp_highp * self = roar_mm_malloc(sizeof(struct roardsp_highp)); 31 31 float freq = 25; 32 32 … … 45 45 int roardsp_highp_uninit(struct roardsp_filter * filter) { 46 46 47 free(filter->inst);47 roar_mm_free(filter->inst); 48 48 return 0; 49 49 } -
libroardsp/filter_lowp.c
r1141 r3001 28 28 29 29 int roardsp_lowp_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 30 struct roardsp_lowp * self = malloc(sizeof(struct roardsp_lowp));30 struct roardsp_lowp * self = roar_mm_malloc(sizeof(struct roardsp_lowp)); 31 31 float freq = filter->rate/2; 32 32 … … 47 47 int roardsp_lowp_uninit(struct roardsp_filter * filter) { 48 48 49 free(filter->inst);49 roar_mm_free(filter->inst); 50 50 return 0; 51 51 } -
libroardsp/filter_swap.c
r3000 r3001 26 26 27 27 int roardsp_swap_init (struct roardsp_filter * filter, struct roar_stream * stream, int id) { 28 struct roardsp_swap * inst = malloc(sizeof(struct roardsp_swap));28 struct roardsp_swap * inst = roar_mm_malloc(sizeof(struct roardsp_swap)); 29 29 30 30 ROAR_DBG("roardsp_swap_init(*): inst=%p", inst); … … 48 48 return -1; 49 49 50 free(filter->inst);50 roar_mm_free(filter->inst); 51 51 52 52 return 0;
Note: See TracChangeset
for help on using the changeset viewer.