So I'm using MAX98357A, which is a filterless class D audio amplifier. I'm running it using Vcc = 5 V. Looking at the page 28 of the datasheet, I see the folliwing formula for output voltage:
Output (dBV) = input (dBFS) + 2.1 dB + Gain (dB), where 0 dBFS is referenced to 0 dBV.
My Gain variable is set to 12 dB. If I set the volume of the input audio to maximum, I'd get signal with following output voltage:
Output (dbV) = 2.1 dB + 0 dBFS + 12 dB = 14.1 dBV.
Converting this to linear units, gives me 5.06 V.
Now, I could be suffering from critical datasheet reading failure, but I couldn't find anywhere the actual limits for the output voltage compared to input voltage.
Therefore, I'd like to see somehow if my output is actually clipping or not.
Unfortunately, I'm not sure how to do this, since the amplifier relies on speakers mechanical inertia to act as a low-pass filer.