Smoothing PWM output

and it's resistive element takes the place of a potentiometer for vol control

Volume control pots normally are just that potential dividers, three terminals, where as an LDR is just a two terminal device that changes resistance. Are you sure you can substitute an LDR for a pot? Even with a fixed top resistor the law will be different between the two devices.

Sorry if you have already considered that but it needs thinking about.