Simple Volume Control

I did it exactly what you suggested. Now when I connect the arduino to my pc and pluged the second supply into the ac line:
The sound quality is so bad, always stay on same level, I can't switch on/off with 0 and 255 like before, and my IC is fire hot.

What happens???