Some extra checks in resampler.h

This commit is contained in:
Alias Letterman 2019-02-11 12:32:17 -06:00
parent 893c719ef4
commit fd177fb317
1 changed files with 2 additions and 0 deletions

View File

@ -56,12 +56,14 @@ class Resampler
{
this->buffer_size = num_samples;
buffer = new int16_t[this->buffer_size];
r_step = 1.0;
clear();
}
~Resampler()
{
delete[] buffer;
buffer = NULL;
}
inline void time_ratio(double ratio)