| 136 | } |
| 137 | |
| 138 | long postResampleCB(void *cb_data, SBSMSFrame *data) |
| 139 | { |
| 140 | ResampleBuf *r = (ResampleBuf*) cb_data; |
| 141 | auto count = r->sbsms->read(r->iface.get(), r->SBSMSBuf.get(), r->SBSMSBlockSize); |
| 142 | data->buf = r->SBSMSBuf.get(); |
| 143 | data->size = count; |
| 144 | data->ratio0 = 1.0 / r->ratio; |
| 145 | data->ratio1 = 1.0 / r->ratio; |
| 146 | return count; |
| 147 | } |
| 148 | |
| 149 | void SBSMSBase :: setParameters(double rateStartIn, double rateEndIn, double pitchStartIn, double pitchEndIn, |
| 150 | SlideType rateSlideTypeIn, SlideType pitchSlideTypeIn, |