What’s the best way to get digital audio into your DAC?

There are multiple means of getting digital audio from your CD player, computer, or streaming device into your DAC. Which one of the many is the best?