Changeset 4acee97
- Timestamp:
- Sep 29, 2016, 11:07:19 PM (8 years ago)
- Branches:
- sampler, timestretch
- Children:
- 0202028
- Parents:
- 30efdd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/effects/timestretch_rubberband.c
r30efdd0 r4acee97 137 137 return AUBIO_OK; 138 138 } else { 139 AUBIO_ ERR("timestretch: could not set stretch ratio to %.2f\n", stretch);139 AUBIO_WRN("timestretch: could not set stretch ratio to %.2f\n", stretch); 140 140 return AUBIO_FAIL; 141 141 } … … 156 156 return AUBIO_OK; 157 157 } else { 158 AUBIO_ ERR("timestretch: could not set pitchscale to %.2f\n", pitchscale);158 AUBIO_WRN("timestretch: could not set pitchscale to %.2f\n", pitchscale); 159 159 return AUBIO_FAIL; 160 160 } … … 174 174 return aubio_timestretch_set_pitchscale(p, pitchscale); 175 175 } else { 176 AUBIO_ ERR("timestretch: could not set transpose to %.2f\n", transpose);176 AUBIO_WRN("timestretch: could not set transpose to %.2f\n", transpose); 177 177 return AUBIO_FAIL; 178 178 } … … 210 210 rubberband_retrieve(p->rb, (float* const*)&(out->data), p->hopsize); 211 211 *read = p->hopsize; 212 } else {212 } else if (available > 0) { 213 213 rubberband_retrieve(p->rb, (float* const*)&(out->data), available); 214 214 *read = available; 215 } else { 216 fvec_zeros(out); 217 *read = 0; 215 218 } 216 219 }
Note: See TracChangeset
for help on using the changeset viewer.