60 for (
i = 0;
i <
n; ++
i) {
231 for (
i = 0;
i < 18;
i++) {
262 "1b=%.2f:2b=%.2f:3b=%.2f"
263 ":4b=%.2f:5b=%.2f:6b=%.2f"
264 ":7b=%.2f:8b=%.2f:9b=%.2f"
265 ":10b=%.2f:11b=%.2f:12b=%.2f"
266 ":13b=%.2f:14b=%.2f:15b=%.2f:"
267 "16b=%.2f:17b=%.2f:18b=%.2f ",
Audio Manipulation Interface Header File.
cAudioProcessor(const int)
Create a new audio processoror.
static constexpr int COMPRESSION_DEFAULT_FACTOR
default compression factor
void SetNormalizer(int)
Set normalize volume parameters.
void ResetNormalizer(void)
void Normalize(uint16_t *, int)
Normalize audio samples.
int m_normalizeIndex
index into normalize average table
int m_amplifier
software volume amplify factor
static constexpr int NORMALIZE_MAX_INDEX
number of normalize average samples
void SetEqualizer(int[18])
Set equalizer bands.
float m_equalizerBand[18]
equalizer band
int m_normalizeReady
index normalize counter
int m_compressionFactor
current compression factor
static constexpr int NORMALIZE_DEFAULT_FACTOR
default normalize factor
int m_normalizeMaxFactor
max. normalize factor
int m_compressionMaxFactor
max. compression factor
std::string GetEqualizerOptions(void) const
Get equalizer filter options.
const int m_bytesPerSample
uint32_t m_normalizeAverage[NORMALIZE_MAX_INDEX]
average of n last normalize sample blocks
int m_normalizeFactor
current normalize factor
int m_normalizeCounter
normalize sample counter
void Amplify(int16_t *, int, int)
Amplify the samples in software.
static constexpr int COMPRESSION_DEFAULT_MAX_FACTOR
default compression max. factor
void SetCompressor(int)
Set volume compression parameters.
static constexpr int NORMALIZE_SAMPLES
number of normalize samples
void Compress(uint16_t *, int)
Compress audio samples.
static constexpr int NORMALIZE_MIN_FACTOR
min. normalize factor
void ResetCompressor(void)
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix