2015-04-11 09:38:30 +02:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2015, Edouard DUPIN, all right reserved
|
|
|
|
* @license APACHE v2.0 (see license file)
|
|
|
|
*/
|
2016-02-02 21:18:54 +01:00
|
|
|
#pragma once
|
2015-04-11 09:38:30 +02:00
|
|
|
|
|
|
|
#include <etk/types.h>
|
2016-09-14 22:19:22 +02:00
|
|
|
/**
|
|
|
|
* @brief Audio library namespace
|
|
|
|
*/
|
2015-04-11 09:38:30 +02:00
|
|
|
namespace audio {
|
2016-09-14 22:19:22 +02:00
|
|
|
/**
|
|
|
|
* @brief Audio-river library namespace
|
|
|
|
*/
|
2015-04-11 09:38:30 +02:00
|
|
|
namespace river {
|
|
|
|
/**
|
|
|
|
* @brief Initialize the River Library
|
|
|
|
* @param[in] _filename Name of the configuration file (if "" ==> default config file)
|
|
|
|
*/
|
2015-04-11 17:43:09 +02:00
|
|
|
void init(const std::string& _filename = "");
|
2015-04-11 09:38:30 +02:00
|
|
|
/**
|
|
|
|
* @brief Initialize the River Library with a json data string
|
|
|
|
* @param[in] _config json sting data
|
|
|
|
*/
|
|
|
|
void initString(const std::string& _config);
|
|
|
|
/**
|
|
|
|
* @brief Un-initialize the River Library
|
|
|
|
* @note this close all stream of all interfaces.
|
|
|
|
* @note really good for test.
|
|
|
|
*/
|
|
|
|
void unInit();
|
|
|
|
/**
|
|
|
|
* @brief Get the status of initialisation
|
|
|
|
* @return true River is init
|
|
|
|
* @return false River is NOT init
|
|
|
|
*/
|
|
|
|
bool isInit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|