Music. What happens when you want to play music from your computer
*A DAC is a Digital Audio Convertor. A DAC is a device that converts a digital (usually binary) code to an analog signal (current, voltage, or electric charge). Signals are easily stored and transmitted in digital form, but a DAC is needed for the signal to be recognized by human senses or other non-digital systems.
The following is from Paul McGowan of PS Audio
With a direct cable you’re always in close distance to your computer, with a network solution your player and computer can be miles apart if you want. While this is a fairly significant diference between the two approaches there’s more going on here than may meet the eye. The most obvious differences between a USB connected DAC and a network connected DAC, the connection method, pale compared to a bigger difference: where and how the music is played.
To help you get a clear picture it’ll first be necessary to increase your understanding of what is actually taking place when you play a track on your computer. Let’s imagine for a moment that we are using iTunes as our music manager and player and connected to our computer is our USB DAC. With me so far? Ok, when you press play after selecting a track, what happens? Here is the path.
Your music is stored on your hard drive and each track memorized on the hard drive has a location on that hard drive. Think of this like a road map with all the streets and houses having an address you can punch into your car’s GPS unit. I want to go to 2324 Smith st. in Allentown PA. so I enter that address information into the GPS and it spits out a set of directions I can drive to. Your music on the hard drive is really no different. Each track has a number that represents the sector it is located on with a drill down map (think of this like the state, the city, the street and the house number). When you press play you are really connecting the player in iTunes to this specific memory address and the information located at that address starts to stream to the player where it is played. Simple, eh? Well……
The track title you see in iTunes is really just a memory location and when you press play, the music player in iTunes is connected directly to that memory location where the track is stored and the bits that make up that track start to stream into the player in iTunes.
The output of the iTunes player is then connected to your USB DAC through the driver we discussed a few days ago.
But the music stored on your hard drive can take many forms: compressed, uncompressed, lossy, lossless, high resolution, low resolution, many bits, few bits, etc. What’s a player supposed to do with this data to get music to play on your DAC? That’s a good question and one we’ll try and tackle in this and a few other posts.
Let’s start with what is on the original CD we started with. If you copy the bits from your CD onto your computer through a process known and ripping, you are extracting the musical data from the CD to your hard drive. What’s on the CD is both the musical data along with other secondary information that helps the CD player make sure the bits are correct and the errors low. The ripping process leaves the secondary bits behind on the CD and sends along only the musical data, song title and track number info.
The musical data we just extracted from your CD cannot be identified in your computer unless it’s in a certain order and then placed in a wrapper or a box – without this wrapper around all the bits, the computer has no idea what the heck it should do with this seemingly random bunch of bits. The most basic wrapper is called a WAVE file (Waveform Audio File Format) which gets shortened down to the required 3 letter version the computer wants to see called WAV which can then be recognized by Intel based computers like Windows runs on. Another wrapper for this pure audio data is called AIFF (Audio Interchange File Format) which is the same thing as WAV (with a few small changes) and this wrapper originally worked only on Macintosh and Amiga computers, but today both operating systems work with either.
The differences between what’s on your CD and the extracted bits that have been placed on your computer and stored in your hard drive are small but neither will work with the other. In other words, if you were to copy the exact file format and wrapper used for WAV or AIFF onto a CD and place that CD into your CD player, it would not work – and vice versa – trying to force the computer to play exactly the stream of bits on your CD. But the actual data itself is the same once we rearrange some things and add our wrapper or container the computer can understand.
So, the player in iTunes can read either of these two formats pretty easily; strip away the container it is boxed in and put the bits back into the original and identical order a CD player does – and then present it to the DAC – and we hear music! Finally!
So let’s review the differences between how a CD player gets the bits to a DAC vs. how a computer gets the same bits to your DAC.
A CD player reads the bits on the CD using the secondary bits (that are not part of the music) to help it extract those bits perfectly and then sends only the musical part to the DAC which is either built into the CD player or attached to the CD transport via a digital cable.
When you copy the music from your CD to your computer, the CD transport uses the same process I just described to give you the perfect bits of music that a DAC would be happy with. Because you now want to use those perfect music bits inside your computer, you need to change them slightly and put them in a special “box” or “wrapper” so the bundled music can be used immediately or found for later playback on the computer.
When you connect the player in iTunes to these stored bits, the wrapper is removed and the original musical bits are sent through the USB cable to your DAC in a form your DAC wants to see – which is identical to what the CD player would offer as well.