Changeset 3001:98395340e261 in roaraudio for libroardsp


Ignore:
Timestamp:
10/27/09 12:01:55 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not use malloc()/free() but roar_mm_*()

Location:
libroardsp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter_add.c

    r1141 r3001  
    2626 
    2727int 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)); 
    2929 
    3030 if ( self == NULL ) 
  • libroardsp/filter_amp.c

    r1141 r3001  
    2626 
    2727int 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)); 
    2929 
    3030 if ( self == NULL ) 
     
    4242int roardsp_amp_uninit(struct roardsp_filter * filter) { 
    4343 
    44  free(filter->inst); 
     44 roar_mm_free(filter->inst); 
    4545 return 0; 
    4646} 
  • libroardsp/filter_dcblock.c

    r1135 r3001  
    2626 
    2727int 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)); 
    2929// roardsp_downmix_ctl(filter, ROARDSP_FCTL_MODE, &mode); 
    3030 
     
    4949  return -1; 
    5050 
    51  free(filter->inst); 
     51 roar_mm_free(filter->inst); 
    5252 
    5353 return 0; 
  • libroardsp/filter_highp.c

    r1141 r3001  
    2828 
    2929int 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)); 
    3131 float freq = 25; 
    3232 
     
    4545int roardsp_highp_uninit(struct roardsp_filter * filter) { 
    4646 
    47  free(filter->inst); 
     47 roar_mm_free(filter->inst); 
    4848 return 0; 
    4949} 
  • libroardsp/filter_lowp.c

    r1141 r3001  
    2828 
    2929int 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)); 
    3131 float freq = filter->rate/2; 
    3232 
     
    4747int roardsp_lowp_uninit(struct roardsp_filter * filter) { 
    4848 
    49  free(filter->inst); 
     49 roar_mm_free(filter->inst); 
    5050 return 0; 
    5151} 
  • libroardsp/filter_swap.c

    r3000 r3001  
    2626 
    2727int 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)); 
    2929 
    3030 ROAR_DBG("roardsp_swap_init(*): inst=%p", inst); 
     
    4848  return -1; 
    4949 
    50  free(filter->inst); 
     50 roar_mm_free(filter->inst); 
    5151 
    5252 return 0; 
Note: See TracChangeset for help on using the changeset viewer.