Folks, just so you know, if you are going to be successful with a class D product, one thing it has to do is meet EU Directives for radiation, so it can obtain the CE mark for use in Europe. In the US, you have to meet FCC part 15.
But its more than that. If the class D circuit makes noise, which will be in the form of RF energy due to parasitics in the design, this noise can leak into the AC line as well as being radiated to other components in the system. Both digital and analog gear can be quite sensitive to this sort of noise. It might blot out certain FM stations on your tuner and generate noise on the AM dial. GANFETs in particular are insanely fast and can switch at some amazing speeds. Just before release of our class D we were concerned about the devices running warmer than we thought they ought to- we found that there was a tiny bit of noise coming from the comparator chip, causing the outputs to switch at 60MHz!
When you change out parts in the output filter or elsewhere in the design, the change can result in parasitic noise due to extra inductance that is introduced. An example is the lead inside a capacitor, which can and is a different length depending on the part used.
For this reason the product needs to be tested for RF and AC line radiation. Failing to do this means that the probability of noise introduced through modification is very high!
Any class D designer will tell you this.
They will also tell you that any such modifications voids the warranty.
@ricevs 's comment about distortion is simply false and this has been known for 90 years in the audio world 😀 (ref.: see Radiotron Designer's Handbook. 3rd edition). Perhaps he could get out there and show us all how its done by designing and building his own design from the ground up.