Commit c46eeb8a authored by Alexandre Savard's avatar Alexandre Savard

#10230: Get back default mainbuffer sampling rate to 8kHz, no need of decoding noise suppressor

parent 1bd22d30
......@@ -63,7 +63,6 @@ AudioRtpRecord::AudioRtpRecord() :
, dtmfQueue_()
, fadeFactor_(INIT_FADE_IN_FACTOR)
, noiseSuppressEncode_(0)
, noiseSuppressDecode_(0)
, audioProcessMutex_()
, callId_("")
, dtmfPayloadType_(101) // same as Asterisk
......@@ -80,7 +79,6 @@ AudioRtpRecord::~AudioRtpRecord()
delete converterDecode_;
delete audioCodec_;
delete noiseSuppressEncode_;
delete noiseSuppressDecode_;
}
......@@ -125,8 +123,6 @@ void AudioRtpRecordHandler::initNoiseSuppress()
ost::MutexLock lock(audioRtpRecord_.audioProcessMutex_);
delete audioRtpRecord_.noiseSuppressEncode_;
audioRtpRecord_.noiseSuppressEncode_ = new NoiseSuppress(getCodecFrameSize(), getCodecSampleRate());
delete audioRtpRecord_.noiseSuppressDecode_;
audioRtpRecord_.noiseSuppressDecode_ = new NoiseSuppress(getCodecFrameSize(), getCodecSampleRate());
}
void AudioRtpRecordHandler::putDtmfEvent(int digit)
......
......@@ -93,7 +93,6 @@ class AudioRtpRecord {
std::list<int> dtmfQueue_;
SFLDataFormat fadeFactor_;
NoiseSuppress *noiseSuppressEncode_;
NoiseSuppress *noiseSuppressDecode_;
ost::Mutex audioProcessMutex_;
std::string callId_;
unsigned int dtmfPayloadType_;
......
......@@ -37,7 +37,7 @@
const char * const MainBuffer::DEFAULT_ID = "audiolayer_id";
MainBuffer::MainBuffer() : ringBufferMap_(), callIDMap_(), mutex_(), internalSamplingRate_(16000)
MainBuffer::MainBuffer() : ringBufferMap_(), callIDMap_(), mutex_(), internalSamplingRate_(8000)
{}
MainBuffer::~MainBuffer()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment