[DEV] update sharedPtr

This commit is contained in:
Edouard DUPIN 2016-07-19 21:43:58 +02:00
parent a9a94b24d9
commit 860eb07f95
6 changed files with 9 additions and 9 deletions

View File

@ -168,7 +168,7 @@ void audio::algo::river::Lms::reset(void) {
void audio::algo::river::Lms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) {
if (m_private == nullptr) {
m_private = std::make_shared<audio::algo::river::LmsPrivate>();
m_private = ememory::makeShared<audio::algo::river::LmsPrivate>();
}
m_private->init(_nbChannel, _sampleRate, _format);
}

View File

@ -9,7 +9,7 @@
#include <etk/types.h>
#include <chrono>
#include <audio/format.h>
#include <memory>
#include <ememory/memory.h>
namespace audio {
namespace algo {
@ -109,7 +109,7 @@ namespace audio {
*/
virtual void process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk);
protected:
std::shared_ptr<LmsPrivate> m_private; // private data.
ememory::SharedPtr<LmsPrivate> m_private; // private data.
public: // parameter area:
/**
* @brief Set filter size with specifing the filter temporal size and his samplerate

View File

@ -193,7 +193,7 @@ void audio::algo::river::Nlms::reset(void) {
void audio::algo::river::Nlms::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) {
if (m_private == nullptr) {
m_private = std::make_shared<audio::algo::river::NlmsPrivate>();
m_private = ememory::makeShared<audio::algo::river::NlmsPrivate>();
}
m_private->init(_nbChannel, _sampleRate, _format);
}

View File

@ -9,7 +9,7 @@
#include <etk/types.h>
#include <chrono>
#include <audio/format.h>
#include <memory>
#include <ememory/memory.h>
namespace audio {
namespace algo {
@ -109,7 +109,7 @@ namespace audio {
*/
virtual void process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk);
protected:
std::shared_ptr<NlmsPrivate> m_private; // private data.
ememory::SharedPtr<NlmsPrivate> m_private; // private data.
public: // parameter area:
/**
* @brief Set filter size with specifing the filter temporal size and his samplerate

View File

@ -141,7 +141,7 @@ void audio::algo::river::Supressor::reset(void) {
void audio::algo::river::Supressor::init(int8_t _nbChannel, float _sampleRate, enum audio::format _format) {
if (m_private == nullptr) {
m_private = std::make_shared<audio::algo::river::SupressorPrivate>();
m_private = ememory::makeShared<audio::algo::river::SupressorPrivate>();
}
m_private->init(_nbChannel, _sampleRate, _format);
}

View File

@ -9,7 +9,7 @@
#include <etk/types.h>
#include <chrono>
#include <audio/format.h>
#include <memory>
#include <ememory/memory.h>
namespace audio {
namespace algo {
@ -60,7 +60,7 @@ namespace audio {
*/
virtual void process(void* _output, const void* _input, const void* _inputFeedback, size_t _nbChunk);
protected:
std::shared_ptr<SupressorPrivate> m_private; // private data.
ememory::SharedPtr<SupressorPrivate> m_private; // private data.
public: // parameter area:
/**
* @brief Set the algo attaque time.