Hi Flotul

I already saw a '317 as a couple of KHz PWM amplifier ( yes ON/OFF !!! ) ... OK ... precisely ON/1.25v ...

Seems it's also already used in classA amplifiers !!! ( see National Datasheet )

Just have a nice filtering for the PWM out of the Pic and it will work just as you want !!!

Alain