From 57adfb43c838004320f5a88c7531710bcc17cc37 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Thu, 7 Sep 2017 23:38:26 +0200 Subject: [PATCH] [DEV] remove STL --- audio/drain/Algo.hpp | 2 +- audio/drain/EndPointCallback.hpp | 4 ++-- audio/drain/EndPointWrite.cpp | 4 ++-- audio/drain/EndPointWrite.hpp | 6 +++--- audio/drain/IOFormatInterface.cpp | 2 +- audio/drain/IOFormatInterface.hpp | 4 ++-- audio/drain/Process.hpp | 2 +- audio/drain/airtalgo.hpp | 2 +- lutin_audio-drain-test.py | 2 +- test/channelOrder.cpp | 2 +- test/equalizer.cpp | 2 +- test/format.cpp | 2 +- test/main.cpp | 2 +- test/resampling.cpp | 2 +- test/updateFlow.cpp | 2 +- 15 files changed, 20 insertions(+), 20 deletions(-) diff --git a/audio/drain/Algo.hpp b/audio/drain/Algo.hpp index 3751ac7..794834b 100644 --- a/audio/drain/Algo.hpp +++ b/audio/drain/Algo.hpp @@ -27,7 +27,7 @@ namespace audio { * @brief audio-algo library namespace */ namespace drain{ - typedef std::function algoStatusFunction; + typedef etk::Function algoStatusFunction; class Algo : public ememory::EnableSharedFromThis { private: etk::String m_name; diff --git a/audio/drain/EndPointCallback.hpp b/audio/drain/EndPointCallback.hpp index e1a3167..7b4a03c 100644 --- a/audio/drain/EndPointCallback.hpp +++ b/audio/drain/EndPointCallback.hpp @@ -10,13 +10,13 @@ namespace audio { namespace drain { - typedef std::function& _map)> playbackFunction; - typedef std::function lock(m_mutex); + std::unique_lock lock(m_mutex); // check if data in the tmpBuffer if (m_buffer.getSize() == 0) { if (m_bufferUnderFlowSize == 0) { @@ -110,7 +110,7 @@ bool audio::drain::EndPointWrite::process(audio::Time& _time, } void audio::drain::EndPointWrite::write(const void* _value, size_t _nbChunk) { - std::unique_lock lock(m_mutex); + std::unique_lock lock(m_mutex); DRAIN_VERBOSE("[ASYNC] Write data : " << _nbChunk << " chunks" << " ==> " << m_output); int32_t nbOverflow = m_buffer.write(_value, _nbChunk); if (nbOverflow > 0) { diff --git a/audio/drain/EndPointWrite.hpp b/audio/drain/EndPointWrite.hpp index 75c1432..620db58 100644 --- a/audio/drain/EndPointWrite.hpp +++ b/audio/drain/EndPointWrite.hpp @@ -7,12 +7,12 @@ #include