[DEBUG] CORRECT FORMAT INTERFACE]

This commit is contained in:
Edouard DUPIN 2016-10-07 21:02:35 +02:00
parent 7a217bfbd2
commit 77c9b99c7a
2 changed files with 14 additions and 14 deletions

View File

@ -29,7 +29,7 @@ audio::drain::IOFormatInterface::IOFormatInterface() :
m_map.push_back(audio::channel_frontRight);
}
audio::drain::IOFormatInterface::IOFormatInterface(std::vector<audio::channel> _map, audio::format _format, float _frequency) :
audio::drain::IOFormatInterface::IOFormatInterface(std::vector<enum audio::channel> _map, enum audio::format _format, float _frequency) :
m_configured(true),
m_format(_format),
m_map(_map),
@ -37,7 +37,7 @@ audio::drain::IOFormatInterface::IOFormatInterface(std::vector<audio::channel> _
}
void audio::drain::IOFormatInterface::set(std::vector<audio::channel> _map, audio::format _format, float _frequency) {
void audio::drain::IOFormatInterface::set(std::vector<enum audio::channel> _map, enum audio::format _format, float _frequency) {
bool hasChange = false;
if (m_map != _map) {
m_map = _map;
@ -65,11 +65,11 @@ bool audio::drain::IOFormatInterface::getConfigured() const {
return m_configured;
}
audio::format audio::drain::IOFormatInterface::getFormat() const {
enum audio::format audio::drain::IOFormatInterface::getFormat() const {
return m_format;
}
void audio::drain::IOFormatInterface::setFormat(audio::format _value) {
void audio::drain::IOFormatInterface::setFormat(enum audio::format _value) {
if (m_format == _value) {
return;
}
@ -78,11 +78,11 @@ void audio::drain::IOFormatInterface::setFormat(audio::format _value) {
configurationChange();
}
const std::vector<audio::channel>& audio::drain::IOFormatInterface::getMap() const{
const std::vector<enum audio::channel>& audio::drain::IOFormatInterface::getMap() const{
return m_map;
}
void audio::drain::IOFormatInterface::setMap(const std::vector<audio::channel>& _value) {
void audio::drain::IOFormatInterface::setMap(const std::vector<enum audio::channel>& _value) {
if (m_map == _value) {
return;
}

View File

@ -21,39 +21,39 @@ namespace audio {
class IOFormatInterface {
public:
IOFormatInterface();
IOFormatInterface(std::vector<audio::channel> _map, audio::format _format=audio::format_int16, float _frequency=48000.0f);
void set(std::vector<audio::channel> _map, audio::format _format=audio::format_int16, float _frequency=48000.0f);
IOFormatInterface(std::vector<enum audio::channel> _map, enum audio::format _format=audio::format_int16, float _frequency=48000.0f);
void set(std::vector<enum audio::channel> _map, enum audio::format _format=audio::format_int16, float _frequency=48000.0f);
protected:
bool m_configured;
public:
void setConfigured(bool _value);
bool getConfigured() const;
protected:
audio::format m_format; //!< input Algo Format
enum audio::format m_format; //!< input Algo Format
public:
/**
* @brief Get the algo format.
* @return the current Format.
*/
audio::format getFormat() const;
enum audio::format getFormat() const;
/**
* @brief Set the algo format.
* @param[in] _value New Format.
*/
void setFormat(audio::format _value);
void setFormat(enum audio::format _value);
protected:
std::vector<audio::channel> m_map; //!< input channel Map
std::vector<enum audio::channel> m_map; //!< input channel Map
public:
/**
* @brief Get the algo channel Map.
* @return the current channel Map.
*/
const std::vector<audio::channel>& getMap() const;
const std::vector<enum audio::channel>& getMap() const;
/**
* @brief Set the algo channel Map.
* @param[in] _value New channel Map.
*/
void setMap(const std::vector<audio::channel>& _value);
void setMap(const std::vector<enum audio::channel>& _value);
protected:
float m_frequency; //!< input Algo Format
public: