[DEV] update sharedPtr

This commit is contained in:
Edouard DUPIN 2016-07-19 21:43:58 +02:00
parent 66092e9a74
commit 2c12f6802d
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ audio::algo::speex::Resampler::~Resampler() {
void audio::algo::speex::Resampler::init(int8_t _nbChannel, float _inputSampleRate, float _outputSampleRate, int8_t _quality, enum audio::format _format) {
m_private.reset();
m_private = std::make_shared<audio::algo::speex::ResamplerPrivate>(_nbChannel, _inputSampleRate, _outputSampleRate, _quality, _format);
m_private = ememory::makeShared<audio::algo::speex::ResamplerPrivate>(_nbChannel, _inputSampleRate, _outputSampleRate, _quality, _format);
}
std::vector<enum audio::format> audio::algo::speex::Resampler::getSupportedFormat() {

View File

@ -8,7 +8,7 @@
#include <etk/types.h>
#include <audio/format.h>
#include <chrono>
#include <memory>
#include <ememory/memory.h>
#include <vector>
namespace audio {
@ -49,7 +49,7 @@ namespace audio {
*/
virtual void process(void* _output, size_t& _nbChunkOut, const void* _input, size_t _nbChunk);
protected:
std::shared_ptr<ResamplerPrivate> m_private; // private data.
ememory::SharedPtr<ResamplerPrivate> m_private; // private data.
};
}
}