Change LinearResampler.advance to external use only.

This commit is contained in:
Jared Boone 2015-10-05 11:55:08 -07:00
parent 4ed385d15e
commit 64ed539554

View File

@ -52,13 +52,13 @@ public:
while( phase < 1.0f ) {
const float interpolated_value = last_sample + phase * sample_delta;
interpolated_sample_handler(interpolated_value);
advance();
phase += phase_increment;
}
last_sample = sample;
phase -= 1.0f;
}
void advance(const float fraction = 1.0f) {
void advance(const float fraction) {
phase += (fraction * phase_increment);
}