From 8f29bd608b6015701e243e3428d8b4a580bfe3a6 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 4 Feb 2015 22:39:05 +0100 Subject: [PATCH] [DEV] remove format and channel description --- airtalgo/Algo.cpp | 17 +++-- airtalgo/Algo.h | 24 +++--- airtalgo/ChannelReorder.cpp | 80 +++++++++++++++++--- airtalgo/EndPointCallback.h | 8 +- airtalgo/EndPointWrite.h | 4 +- airtalgo/FormatUpdate.cpp | 40 +++++----- airtalgo/IOFormatInterface.cpp | 18 ++--- airtalgo/IOFormatInterface.h | 20 ++--- airtalgo/Process.cpp | 20 ++--- airtalgo/Process.h | 4 +- airtalgo/Resampler.cpp | 4 +- airtalgo/Volume.cpp | 115 +++++++++++++++-------------- airtalgo/Volume.h | 4 +- airtalgo/airtalgo.h | 2 +- airtalgo/channel.cpp | 131 --------------------------------- airtalgo/channel.h | 35 --------- airtalgo/format.cpp | 61 --------------- airtalgo/format.h | 28 ------- lutin_airtalgo.py | 4 +- 19 files changed, 218 insertions(+), 401 deletions(-) delete mode 100644 airtalgo/channel.cpp delete mode 100644 airtalgo/channel.h delete mode 100644 airtalgo/format.cpp delete mode 100644 airtalgo/format.h diff --git a/airtalgo/Algo.cpp b/airtalgo/Algo.cpp index 27f3e88..f68f826 100644 --- a/airtalgo/Algo.cpp +++ b/airtalgo/Algo.cpp @@ -39,17 +39,24 @@ void airtalgo::Algo::configurationChange() { m_needProcess = true; } switch (m_output.getFormat()) { - case format_int16: + case audio::format_int8: + m_formatSize = sizeof(int8_t); + break; + case audio::format_int16: m_formatSize = sizeof(int16_t); break; - case format_int16_on_int32: - case format_int32: + case audio::format_int24: + case audio::format_int16_on_int32: + case audio::format_int32: m_formatSize = sizeof(int32_t); break; - case format_float: + case audio::format_float: m_formatSize = sizeof(float); break; - case format_unknow: + case audio::format_double: + m_formatSize = sizeof(double); + break; + case audio::format_unknow: AIRTALGO_ERROR("format not configured..."); m_formatSize = 8; break; diff --git a/airtalgo/Algo.h b/airtalgo/Algo.h index 35173d9..e5cfac9 100644 --- a/airtalgo/Algo.h +++ b/airtalgo/Algo.h @@ -11,8 +11,8 @@ #include #include #include -#include -#include +#include