From a6088f420f51ce75cce7a16b36a9cbc81d57fc6d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 19 Jun 2018 22:13:48 +0200 Subject: [PATCH] [DEV] update etk null --- audio/algo/river/Lms.cpp | 12 ++++++------ audio/algo/river/Nlms.cpp | 12 ++++++------ audio/algo/river/Suppressor.cpp | 16 ++++++++-------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/audio/algo/river/Lms.cpp b/audio/algo/river/Lms.cpp index 72d0e18..fe25e1e 100644 --- a/audio/algo/river/Lms.cpp +++ b/audio/algo/river/Lms.cpp @@ -160,14 +160,14 @@ audio::algo::river::Lms::~Lms(void) { } void audio::algo::river::Lms::reset(void) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->reset(); } void audio::algo::river::Lms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { - if (m_private == nullptr) { + if (m_private == null) { m_private = ememory::makeShared(); } m_private->init(_nbChannel, _sampleRate, _format); @@ -186,7 +186,7 @@ etk::Vector audio::algo::river::Lms::getNativeSupportedForma } void audio::algo::river::Lms::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->process(_output, _input, _inputFeedback, _nbChunk); @@ -194,21 +194,21 @@ void audio::algo::river::Lms::process(void* _output, const void* _input, const v void audio::algo::river::Lms::setFilterTime(echrono::microseconds _time) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setFilterTime(_time); } void audio::algo::river::Lms::setFilterSize(size_t _nbSample) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setFilterSize(_nbSample); } void audio::algo::river::Lms::setMu(double _val) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setMu(_val); diff --git a/audio/algo/river/Nlms.cpp b/audio/algo/river/Nlms.cpp index 62ada46..2e15771 100644 --- a/audio/algo/river/Nlms.cpp +++ b/audio/algo/river/Nlms.cpp @@ -171,14 +171,14 @@ audio::algo::river::Nlms::~Nlms(void) { } void audio::algo::river::Nlms::reset(void) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->reset(); } void audio::algo::river::Nlms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { - if (m_private == nullptr) { + if (m_private == null) { m_private = ememory::makeShared(); } m_private->init(_nbChannel, _sampleRate, _format); @@ -197,7 +197,7 @@ etk::Vector audio::algo::river::Nlms::getNativeSupportedForm } void audio::algo::river::Nlms::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->process(_output, _input, _inputFeedback, _nbChunk); @@ -205,21 +205,21 @@ void audio::algo::river::Nlms::process(void* _output, const void* _input, const void audio::algo::river::Nlms::setFilterTime(echrono::microseconds _time) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setFilterTime(_time); } void audio::algo::river::Nlms::setFilterSize(size_t _nbSample) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setFilterSize(_nbSample); } void audio::algo::river::Nlms::setMu(double _val) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setMu(_val); diff --git a/audio/algo/river/Suppressor.cpp b/audio/algo/river/Suppressor.cpp index e9e07c0..08fdf07 100644 --- a/audio/algo/river/Suppressor.cpp +++ b/audio/algo/river/Suppressor.cpp @@ -133,14 +133,14 @@ audio::algo::river::Supressor::~Supressor(void) { } void audio::algo::river::Supressor::reset(void) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->reset(); } void audio::algo::river::Supressor::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { - if (m_private == nullptr) { + if (m_private == null) { m_private = ememory::makeShared(); } m_private->init(_nbChannel, _sampleRate, _format); @@ -158,7 +158,7 @@ etk::Vector audio::algo::river::Supressor::getNativeSupporte } void audio::algo::river::Supressor::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->process(_output, _input, _inputFeedback, _nbChunk); @@ -166,35 +166,35 @@ void audio::algo::river::Supressor::process(void* _output, const void* _input, c void audio::algo::river::Supressor::setAttaqueTime(echrono::microseconds _time) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setAttaqueTime(_time); } void audio::algo::river::Supressor::setReleaseTime(echrono::microseconds _time) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setReleaseTime(_time); } void audio::algo::river::Supressor::setMinimumGain(float _gain) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setMinimumGain(_gain); } void audio::algo::river::Supressor::setThreshold(float _gain) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setThreshold(_gain); } void audio::algo::river::Supressor::setReleaseDelay(echrono::microseconds _time) { - if (m_private == nullptr) { + if (m_private == null) { AA_RIVER_ERROR("Algo is not initialized..."); } m_private->setReleaseDelay(_time);