[DEV] update sharedPtr
This commit is contained in:
parent
66092e9a74
commit
2c12f6802d
@ -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() {
|
||||
|
@ -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.
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user