|
arduino-audio-tools
|
PCM type traits used by AutomaticGainControlStream.
Declared at namespace scope (rather than as a nested member template) because explicit specialization of a member template inside a class body is not standard C++ and is rejected by some compilers.
fixed_shift is the right-shift that normalizes a sample to ~16-bit range before squaring in the PREFER_FIXEDPOINT accumulation path, so the sum of squares cannot overflow int64_t even for large blocks.