mirror of https://github.com/snes9xgit/snes9x.git
Some extra checks in resampler.h
This commit is contained in:
parent
893c719ef4
commit
fd177fb317
|
@ -56,12 +56,14 @@ class Resampler
|
||||||
{
|
{
|
||||||
this->buffer_size = num_samples;
|
this->buffer_size = num_samples;
|
||||||
buffer = new int16_t[this->buffer_size];
|
buffer = new int16_t[this->buffer_size];
|
||||||
|
r_step = 1.0;
|
||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
~Resampler()
|
~Resampler()
|
||||||
{
|
{
|
||||||
delete[] buffer;
|
delete[] buffer;
|
||||||
|
buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void time_ratio(double ratio)
|
inline void time_ratio(double ratio)
|
||||||
|
|
Loading…
Reference in New Issue