[DEV] update etk null

This commit is contained in:
Edouard DUPIN 2018-06-19 22:13:48 +02:00
parent e6fbd23054
commit a6088f420f
3 changed files with 20 additions and 20 deletions

View File

@ -160,14 +160,14 @@ audio::algo::river::Lms::~Lms(void) {
} }
void audio::algo::river::Lms::reset(void) { void audio::algo::river::Lms::reset(void) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->reset(); m_private->reset();
} }
void audio::algo::river::Lms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { 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<audio::algo::river::LmsPrivate>(); m_private = ememory::makeShared<audio::algo::river::LmsPrivate>();
} }
m_private->init(_nbChannel, _sampleRate, _format); m_private->init(_nbChannel, _sampleRate, _format);
@ -186,7 +186,7 @@ etk::Vector<enum audio::format> audio::algo::river::Lms::getNativeSupportedForma
} }
void audio::algo::river::Lms::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { 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..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->process(_output, _input, _inputFeedback, _nbChunk); 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) { void audio::algo::river::Lms::setFilterTime(echrono::microseconds _time) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setFilterTime(_time); m_private->setFilterTime(_time);
} }
void audio::algo::river::Lms::setFilterSize(size_t _nbSample) { void audio::algo::river::Lms::setFilterSize(size_t _nbSample) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setFilterSize(_nbSample); m_private->setFilterSize(_nbSample);
} }
void audio::algo::river::Lms::setMu(double _val) { void audio::algo::river::Lms::setMu(double _val) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setMu(_val); m_private->setMu(_val);

View File

@ -171,14 +171,14 @@ audio::algo::river::Nlms::~Nlms(void) {
} }
void audio::algo::river::Nlms::reset(void) { void audio::algo::river::Nlms::reset(void) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->reset(); m_private->reset();
} }
void audio::algo::river::Nlms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { 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<audio::algo::river::NlmsPrivate>(); m_private = ememory::makeShared<audio::algo::river::NlmsPrivate>();
} }
m_private->init(_nbChannel, _sampleRate, _format); m_private->init(_nbChannel, _sampleRate, _format);
@ -197,7 +197,7 @@ etk::Vector<enum audio::format> audio::algo::river::Nlms::getNativeSupportedForm
} }
void audio::algo::river::Nlms::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { 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..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->process(_output, _input, _inputFeedback, _nbChunk); 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) { void audio::algo::river::Nlms::setFilterTime(echrono::microseconds _time) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setFilterTime(_time); m_private->setFilterTime(_time);
} }
void audio::algo::river::Nlms::setFilterSize(size_t _nbSample) { void audio::algo::river::Nlms::setFilterSize(size_t _nbSample) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setFilterSize(_nbSample); m_private->setFilterSize(_nbSample);
} }
void audio::algo::river::Nlms::setMu(double _val) { void audio::algo::river::Nlms::setMu(double _val) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setMu(_val); m_private->setMu(_val);

View File

@ -133,14 +133,14 @@ audio::algo::river::Supressor::~Supressor(void) {
} }
void audio::algo::river::Supressor::reset(void) { void audio::algo::river::Supressor::reset(void) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->reset(); m_private->reset();
} }
void audio::algo::river::Supressor::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) { 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<audio::algo::river::SupressorPrivate>(); m_private = ememory::makeShared<audio::algo::river::SupressorPrivate>();
} }
m_private->init(_nbChannel, _sampleRate, _format); m_private->init(_nbChannel, _sampleRate, _format);
@ -158,7 +158,7 @@ etk::Vector<enum audio::format> audio::algo::river::Supressor::getNativeSupporte
} }
void audio::algo::river::Supressor::process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk) { 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..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->process(_output, _input, _inputFeedback, _nbChunk); 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) { void audio::algo::river::Supressor::setAttaqueTime(echrono::microseconds _time) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setAttaqueTime(_time); m_private->setAttaqueTime(_time);
} }
void audio::algo::river::Supressor::setReleaseTime(echrono::microseconds _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..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setReleaseTime(_time); m_private->setReleaseTime(_time);
} }
void audio::algo::river::Supressor::setMinimumGain(float _gain) { void audio::algo::river::Supressor::setMinimumGain(float _gain) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setMinimumGain(_gain); m_private->setMinimumGain(_gain);
} }
void audio::algo::river::Supressor::setThreshold(float _gain) { void audio::algo::river::Supressor::setThreshold(float _gain) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setThreshold(_gain); m_private->setThreshold(_gain);
} }
void audio::algo::river::Supressor::setReleaseDelay(echrono::microseconds _time) { void audio::algo::river::Supressor::setReleaseDelay(echrono::microseconds _time) {
if (m_private == nullptr) { if (m_private == null) {
AA_RIVER_ERROR("Algo is not initialized..."); AA_RIVER_ERROR("Algo is not initialized...");
} }
m_private->setReleaseDelay(_time); m_private->setReleaseDelay(_time);