Changeset 1141:37c25717fca0 in roaraudio for libroardsp/filter_lowp.c
- Timestamp:
- 01/21/09 22:51:58 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/filter_lowp.c
r1104 r1141 107 107 } 108 108 109 int roardsp_lowp_reset (struct roardsp_filter * filter, int what) { 110 struct roardsp_lowp * self; 111 float freq; 112 113 if ( filter == NULL ) 114 return -1; 115 116 if ( filter->inst == NULL ) 117 return -1; 118 119 self = filter->inst; 120 freq = filter->rate/2; 121 122 switch (what) { 123 case ROARDSP_RESET_NONE: 124 return 0; 125 break; 126 case ROARDSP_RESET_FULL: 127 roardsp_lowp_ctl(filter, ROARDSP_FCTL_FREQ, &freq); 128 case ROARDSP_RESET_STATE: 129 memset(self->old, 0, sizeof(int32_t)*ROAR_MAX_CHANNELS); 130 return 0; 131 break; 132 default: 133 return -1; 134 } 135 136 return -1; 137 } 138 109 139 #endif 110 140
Note: See TracChangeset
for help on using the changeset viewer.