Since sound is so important to a dog, your music can affect his mood in much the same way it affects you.
When she played classical music, like Beethoven or Vivaldi, it had a soothing effect and relaxed the pooches.
Loud, thrashing heavy metal like Metallica got the dogs riled up, making them anxious and agitated.