Digital potentiometer as volume control

Ok, solved
I hadn't added in a series capacitor between the audio player and the digital pot. I had one between the pot and amp, but not before the pot. doh!