I designed a PCB with the following audio amplifier on it: https://eu.mouser.com/datasheet/2/302/TFA9896_SDS-1381317.pdf
According to the data sheet, the amplifier is able to deliver 2.1W RMS into an 8 Ohm speaker at a battery voltage of 3.6V.
For testing the amplifier, I used a 3W speaker with 8 Ohm and played 16 bit wave files with a maximum amplitude of less than 1. When I play these files, there is strong clipping. This can be observed also for other speakers.
The audio amplifier boosts the input voltage to 6.1V and is able to provide a peak current of 2.5A. In my tests, I measure a peak current of 0.5A and an average current of 0.25A during playback.
As I'm lacking experience with audio amplifiers, I wonder how to fix this issue. When lowering the maximum amplitude of the wave files to less than 0.5, the clipping vanishes. However, I would like not to sacrifice for volume as the audio amplifier should be able to provide enough power according to the data sheet.