[DEV] WORK on a port for BOOST
This commit is contained in:
@@ -11,12 +11,19 @@
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <stdint.h>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#else
|
||||
#include <etk/chrono.h>
|
||||
#include <etk/functional.h>
|
||||
#include <etk/memory.h>
|
||||
#endif
|
||||
#include <audio/format.h>
|
||||
#include <audio/channel.h>
|
||||
#include "Manager.h"
|
||||
#include <memory>
|
||||
#include <river/Interface.h>
|
||||
#include <airtaudio/Interface.h>
|
||||
#include <drain/IOFormatInterface.h>
|
||||
@@ -26,14 +33,14 @@
|
||||
namespace river {
|
||||
namespace io {
|
||||
class Manager;
|
||||
class Node : public std::enable_shared_from_this<Node> {
|
||||
class Node : public std11::enable_shared_from_this<Node> {
|
||||
protected:
|
||||
uint32_t m_uid; // uniqueNodeID
|
||||
protected:
|
||||
/**
|
||||
* @brief Constructor
|
||||
*/
|
||||
Node(const std::string& _name, const std::shared_ptr<const ejson::Object>& _config);
|
||||
Node(const std::string& _name, const std11::shared_ptr<const ejson::Object>& _config);
|
||||
public:
|
||||
/**
|
||||
* @brief Destructor
|
||||
@@ -41,8 +48,8 @@ namespace river {
|
||||
virtual ~Node();
|
||||
|
||||
protected:
|
||||
mutable std::mutex m_mutex;
|
||||
std::shared_ptr<const ejson::Object> m_config;
|
||||
mutable std11::mutex m_mutex;
|
||||
std11::shared_ptr<const ejson::Object> m_config;
|
||||
protected:
|
||||
drain::Process m_process;
|
||||
public:
|
||||
@@ -62,16 +69,16 @@ namespace river {
|
||||
}
|
||||
protected:
|
||||
|
||||
std::shared_ptr<drain::VolumeElement> m_volume; //!< if a volume is set it is set here ...
|
||||
std11::shared_ptr<drain::VolumeElement> m_volume; //!< if a volume is set it is set here ...
|
||||
|
||||
protected:
|
||||
std::vector<std::weak_ptr<river::Interface> > m_listAvaillable; //!< List of all interface that exist on this Node
|
||||
std::vector<std::shared_ptr<river::Interface> > m_list;
|
||||
std::vector<std11::weak_ptr<river::Interface> > m_listAvaillable; //!< List of all interface that exist on this Node
|
||||
std::vector<std11::shared_ptr<river::Interface> > m_list;
|
||||
size_t getNumberOfInterface(enum river::modeInterface _interfaceType);
|
||||
public:
|
||||
void registerAsRemote(const std::shared_ptr<river::Interface>& _interface);
|
||||
void interfaceAdd(const std::shared_ptr<river::Interface>& _interface);
|
||||
void interfaceRemove(const std::shared_ptr<river::Interface>& _interface);
|
||||
void registerAsRemote(const std11::shared_ptr<river::Interface>& _interface);
|
||||
void interfaceAdd(const std11::shared_ptr<river::Interface>& _interface);
|
||||
void interfaceRemove(const std11::shared_ptr<river::Interface>& _interface);
|
||||
protected:
|
||||
std::string m_name; //!< Harware.json configuration name
|
||||
public:
|
||||
@@ -91,7 +98,7 @@ namespace river {
|
||||
virtual void start() = 0;
|
||||
virtual void stop() = 0;
|
||||
public:
|
||||
const std::shared_ptr<drain::VolumeElement>& getVolume() {
|
||||
const std11::shared_ptr<drain::VolumeElement>& getVolume() {
|
||||
return m_volume;
|
||||
}
|
||||
public:
|
||||
@@ -99,10 +106,10 @@ namespace river {
|
||||
protected:
|
||||
int32_t newInput(const void* _inputBuffer,
|
||||
uint32_t _nbChunk,
|
||||
const std::chrono::system_clock::time_point& _time);
|
||||
const std11::chrono::system_clock::time_point& _time);
|
||||
int32_t newOutput(void* _outputBuffer,
|
||||
uint32_t _nbChunk,
|
||||
const std::chrono::system_clock::time_point& _time);
|
||||
const std11::chrono::system_clock::time_point& _time);
|
||||
|
||||
public:
|
||||
virtual void generateDot(etk::FSNode& _node);
|
||||
|
Reference in New Issue
Block a user