mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
CR feedback
This commit is contained in:
parent
4c12630458
commit
c000c635b1
1 changed files with 4 additions and 4 deletions
|
@ -228,8 +228,6 @@ int AudioSRC::createIrrationalFilter(int upFactor, int downFactor, float gain) {
|
||||||
_polyphaseFilter[numTaps * numPhases + j] = _polyphaseFilter[j-1];
|
_polyphaseFilter[numTaps * numPhases + j] = _polyphaseFilter[j-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
_stepTable = nullptr;
|
|
||||||
|
|
||||||
return numTaps;
|
return numTaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -480,6 +478,9 @@ AudioSRC::AudioSRC(int inputSampleRate, int outputSampleRate, int numChannels) {
|
||||||
_step = ((int64_t)_inputSampleRate << 32) / _outputSampleRate;
|
_step = ((int64_t)_inputSampleRate << 32) / _outputSampleRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_polyphaseFilter = nullptr;
|
||||||
|
_stepTable = nullptr;
|
||||||
|
|
||||||
// create the polyphase filter
|
// create the polyphase filter
|
||||||
if (_step == 0) {
|
if (_step == 0) {
|
||||||
_numTaps = createRationalFilter(_upFactor, _downFactor, 1.0f);
|
_numTaps = createRationalFilter(_upFactor, _downFactor, 1.0f);
|
||||||
|
@ -512,6 +513,7 @@ AudioSRC::AudioSRC(int inputSampleRate, int outputSampleRate, int numChannels) {
|
||||||
|
|
||||||
AudioSRC::~AudioSRC() {
|
AudioSRC::~AudioSRC() {
|
||||||
aligned_free(_polyphaseFilter);
|
aligned_free(_polyphaseFilter);
|
||||||
|
delete[] _stepTable;
|
||||||
|
|
||||||
delete[] _history[0];
|
delete[] _history[0];
|
||||||
delete[] _history[1];
|
delete[] _history[1];
|
||||||
|
@ -520,8 +522,6 @@ AudioSRC::~AudioSRC() {
|
||||||
delete[] _inputs[1];
|
delete[] _inputs[1];
|
||||||
delete[] _outputs[0];
|
delete[] _outputs[0];
|
||||||
delete[] _outputs[1];
|
delete[] _outputs[1];
|
||||||
|
|
||||||
delete[] _stepTable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue