[DEV] mode Circular buffer in Drain lib
This commit is contained in:
@@ -139,6 +139,7 @@ void river::io::Node::registerAsRemote(const std11::shared_ptr<river::Interface>
|
||||
while (it != m_listAvaillable.end()) {
|
||||
if (it->expired() == true) {
|
||||
it = m_listAvaillable.erase(it);
|
||||
continue;
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <river/io/Node.h>
|
||||
#include <river/Interface.h>
|
||||
#include <river/CircularBuffer.h>
|
||||
#include <drain/CircularBuffer.h>
|
||||
|
||||
namespace river {
|
||||
namespace io {
|
||||
@@ -48,8 +48,8 @@ namespace river {
|
||||
enum audio::format _format,
|
||||
uint32_t _frequency,
|
||||
const std::vector<audio::channel>& _map);
|
||||
river::CircularBuffer m_bufferMicrophone;
|
||||
river::CircularBuffer m_bufferFeedBack;
|
||||
drain::CircularBuffer m_bufferMicrophone;
|
||||
drain::CircularBuffer m_bufferFeedBack;
|
||||
std11::chrono::nanoseconds m_sampleTime; //!< represent the sample time at the specify frequency.
|
||||
void process();
|
||||
void processAEC(void* _dataMic, void* _dataFB, uint32_t _nbChunk, const std11::chrono::system_clock::time_point& _time);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <river/io/Node.h>
|
||||
#include <river/Interface.h>
|
||||
#include <river/CircularBuffer.h>
|
||||
#include <drain/CircularBuffer.h>
|
||||
|
||||
namespace river {
|
||||
namespace io {
|
||||
@@ -50,8 +50,8 @@ namespace river {
|
||||
const std::vector<audio::channel>& _map);
|
||||
std::vector<audio::channel> m_mapInput1;
|
||||
std::vector<audio::channel> m_mapInput2;
|
||||
river::CircularBuffer m_bufferInput1;
|
||||
river::CircularBuffer m_bufferInput2;
|
||||
drain::CircularBuffer m_bufferInput1;
|
||||
drain::CircularBuffer m_bufferInput2;
|
||||
std11::chrono::nanoseconds m_sampleTime; //!< represent the sample time at the specify frequency.
|
||||
void process();
|
||||
void processMuxer(void* _dataMic, void* _dataFB, uint32_t _nbChunk, const std11::chrono::system_clock::time_point& _time);
|
||||
|
Reference in New Issue
Block a user