Can I record the music or sounds from the game?

I don't get an error message, but I can't get sound or music.