comparison libaf/af_resample.c @ 8711:906f7a2dc085

sig 11 fix in reinit and resample + spelling error fixes
author anders
date Thu, 02 Jan 2003 03:00:44 +0000
parents d6f40a06867b
children 558f0b1f45ee
comparison
equal deleted inserted replaced
8710:ba369c754b36 8711:906f7a2dc085
130 int i,d = 0; 130 int i,d = 0;
131 int rv = AF_OK; 131 int rv = AF_OK;
132 size_t tsz = (s->type==TYPE_INT) ? sizeof(int16_t) : sizeof(float); 132 size_t tsz = (s->type==TYPE_INT) ? sizeof(int16_t) : sizeof(float);
133 133
134 // Make sure this filter isn't redundant 134 // Make sure this filter isn't redundant
135 if(af->data->rate == n->rate) 135 if((af->data->rate == n->rate) || (af->data->rate == 0))
136 return AF_DETACH; 136 return AF_DETACH;
137 137
138 // If linear interpolation 138 // If linear interpolation
139 if(s->type == TYPE_LIN){ 139 if(s->type == TYPE_LIN){
140 s->pt=0LL; 140 s->pt=0LL;