Safeload mixer/EQ/master on the ADAU1701, persist AudioProfile in NVS, expose /api/audio routes and web UI controls, with host tests and manual sync. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
662 B
C++
31 lines
662 B
C++
/**
|
|
* @file BiquadCoefficients.cpp
|
|
* @brief BiquadCoefficients fixpoint conversion.
|
|
*
|
|
* DigiRadio firmware — https://github.com/manvalan/DigiRadio
|
|
*
|
|
* Copyright 2026 Michele Bigi
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* @author Michele Bigi
|
|
* @date 2026-07-06
|
|
*/
|
|
|
|
#include "core/BiquadCoefficients.hpp"
|
|
#include "core/BiquadDesign.hpp"
|
|
|
|
namespace core {
|
|
|
|
std::array<std::int32_t, 5> BiquadCoefficients::toFixpoint823() const noexcept
|
|
{
|
|
return {
|
|
floatToFixpoint823(b0),
|
|
floatToFixpoint823(b1),
|
|
floatToFixpoint823(b2),
|
|
floatToFixpoint823(a0),
|
|
floatToFixpoint823(a1),
|
|
};
|
|
}
|
|
|
|
} // namespace core
|