arduino-audio-tools
Loading...
Searching...
No Matches
AGCPCMTraits< T > Struct Template Reference

Detailed Description

template<typename T>
struct audio_tools::AGCPCMTraits< T >

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.


The documentation for this struct was generated from the following file: