They will work just fine on the output of the amp. A/C or D/C doesn't matter, they will forward bias/reverse bias faster than than your eyes will ever be able to detect. They will just light up with the bass (assuming you have a low pass filter, pretty sure you do with a class D.) You'll just need to use a resistor to drop voltage and keep things safe. The resistor value will depend on your led forward bias current rating. If you aren't sure, just start with something high like 10K or so and work your way down. If you are using very high output leds, the resistor will be much smaller. Try and use a 1/2 watt or higher at least for the resistor, a few watts will be better, depending on how many leds you will use. Also, you could just use a ton in series, that will be fine too, jst make sure you hook up the polarity right, if you put one in backwards, there will always be one reversed bias and no cuurent will flow. I use leds in my amps I build straight of of the mains input (50/60Hz) with a dropping resistor and you could never tell it was driven by AC. The leds will blow up before you hurt an amp with an output stage like that....