• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Digital audio basics

T

twilyth

Guest
I learned a great deal in a recent trouble-shooting thread I had posted and I thought a lot of the information presented there was worth codifying so as to make it easily available to others interested in digital audio.

Special thanks to streetfighter 2 and BumbleBee but also everyone who contributed including Sinzia, Jetster and hat.

I'm probably going to overlook a lot of valuable information, not to mention making any number of errors, so I'm reserving a few slots for later additions and will edit posts as my errors are pointed out. Please post and indicate any information that should be included and I will either plagarize you post to include it the main sequence or edit it as necessary to keep it clean and easy to understand.

HDMI is superior to analog and other forms of digital audio

Even people who are tech savvy may not realize that the HDMI interface provides a far superior method of reproducing audio from digital sources. The audio functions are generally seen as a convenience which allows you to have a single cable for DVI video and digital audio. But in fact, it goes so far beyond that.

HDMI can handle up to 8 24-bit channels with sample rates up to 192khz (or higher). It can also handle a variety of compression protocols, although the extent of it's capabilities are hardware dependent.

For digital audio, if an HDMI device supports audio, it is required to support the baseline format: stereo (uncompressed) PCM. Other formats are optional, with HDMI allowing up to 8 channels of uncompressed audio at sample sizes of 16-bit, 20-bit and 24-bit, with sample rates of 32 kHz, 44.1 kHz, 48 kHz, 88.2 kHz, 96 kHz, 176.4 kHz and 192 kHz.[21][45] HDMI also supports any IEC 61937-compliant compressed audio stream, such as Dolby Digital and DTS, and up to 8 channels of one-bit DSD audio (used on Super Audio CDs) at rates up to four times that of Super Audio CD.[45] With version 1.3, HDMI supports lossless compressed audio streams Dolby TrueHD and DTS-HD Master Audio.[45]

This means that if you have a relatively recent discreet video card or IGP, you have everything you need to produce the best sound from any digital source.

HDMI vs S/PDIF

Most motherboards have the ability to output an S/PDIF signal, however, optical transfer of digital audio has numerous limitations. For example an S/PDIF connection can only handle 4 channels at a 44khz sample rate. And while it technically has 24-bit resolution, it is designed for only 20 bit.

In addition, S/PDIF can't handle many of the protocols that HDMI can.
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
Mussels actually made a similar thread, though it doesn't get into much of the real technical grit:
http://www.techpowerup.com/forums/showthread.php?t=141676
For example an S/PDIF connection can only handle 4 channels at a 44khz sample rate.
Where'd you read that?

SPDIF can handle DTS and AC3 just fine. It just can't do DTS-HD, Dolby TrueHD or anything more than 2 channels PCM/lossless.

If you try to run DTS-HD or Dolby TrueHD thru SPDIF it should convert to DTS/Dolby core (aka compressed/encoded stream). I've tested this myself and I honestly can't tell the difference between master and encoded on my sound system, but it might just be the audio clip I'm using.

In order to use DTS-HD and/or Dolby TrueHD with your HT and HTPC you need:
1) a graphics card that can bitstream those formats (HD 5XXX +, GTX 460, GTX 5XX+, H67+, etc.)
2) a couple HDMI 1.3+ cables
3) a recent version of arcsoft or powerdvd (w/ HD bitstream)
4) a DTS-HD or Dolby TrueHD source
5) a compatible receiver
6) a compatible display
7) an HDCP compliant datapath (for bru-lays :D)

It's so easy . . . :rolleyes:
Most motherboards have the ability to output an S/PDIF signal, however, optical transfer of digital audio has numerous limitations.
Optical or coaxial transfer of audio doesn't have limitations (as far as I know), but SPDIF does. The SPDIF protocol is old but the cables themselves, RCA coax and TOSLINK, have enough bandwidth to transfer DTS-HD and Dolby TrueHD. As I understand it, the only reason that DTS-HD and Dolby TrueHD aren't bitstreamed through a RCA coax or TOSLINK is because the SPDIF protocol does not provide HDCP.

Kinda hard to get a good source here . . . This is the best I could do:
Originally Posted by JiffOrange
SPDIF has sufficient bandwidth for HD audio but the protocal developed by sony and philips doesn't support anything over 2 channel [PCM/lossless] ...since the audio path is not compatable with AACS and no current equipments carries the required capabilities it is very unlikeky you will ever get HD audio over SPDIF.
In addition, S/PDIF can't handle many of the protocols that HDMI can.
SPDIF is the protocol. I think you're referring to the "format" (sometimes informally called a codec).
 
Last edited:
T

twilyth

Guest
This is why you got the gilded invitation with the fancy calligraphy dude. What? You think it's because I like you? :laugh: ;)

So what are the limitations on S/PDIF? I know bit rate is one.

Also, maybe you could decode this paragraph for us mere mortals since it doesn't sound good but that's the most I can get from it.

Because the receiver cannot control the data rate, it instead has to avoid bit slip by synchronising its conversion with the source clock. This means that S/PDIF cannot fully decouple the final signal from influence by the analogue characteristics of the source or the interconnect, even though the digital audio data can normally be transmitted without loss. The source clock may carry inherent jitter or wander, and noise or distortion introduced in the data cable may further influence the process of clock recovery.[5][6][7] If the DAC does not have a stable clock reference then noise will be introduced into the resulting analogue signal. However, receivers can implement various strategies which limit this influence.[7][8]

TOSLINK cables do not work well (and may even suffer permanent damage) if tightly bent or squashed by, say, a misplaced foot. Their high light-signal attenuation limits their effective range to 6.1 metres (20 ft) or so. On the other hand, TOSLINK cables are not susceptible to ground loops and RF interference, as coaxial cables are.[9]

S/PDIF lacks flow control and retransmission facilities, which limits its usefulness in data communications applications.

Thanks again :toast: :respect:
 

Thatguy

New Member
Joined
Nov 24, 2010
Messages
666 (0.14/day)
I learned a great deal in a recent trouble-shooting thread I had posted and I thought a lot of the information presented there was worth codifying so as to make it easily available to others interested in digital audio.

Special thanks to streetfighter 2 and BumbleBee but also everyone who contributed including Sinzia, Jetster and hat.

I'm probably going to overlook a lot of valuable information, not to mention making any number of errors, so I'm reserving a few slots for later additions and will edit posts as my errors are pointed out. Please post and indicate any information that should be included and I will either plagarize you post to include it the main sequence or edit it as necessary to keep it clean and easy to understand.

HDMI is superior to analog and other forms of digital audio

Even people who are tech savvy may not realize that the HDMI interface provides a far superior method of reproducing audio from digital sources. The audio functions are generally seen as a convenience which allows you to have a single cable for DVI video and digital audio. But in fact, it goes so far beyond that.

HDMI can handle up to 8 24-bit channels with sample rates up to 192khz (or higher). It can also handle a variety of compression protocols, although the extent of it's capabilities are hardware dependent.



This means that if you have a relatively recent discreet video card or IGP, you have everything you need to produce the best sound from any digital source.

HDMI vs S/PDIF

Most motherboards have the ability to output an S/PDIF signal, however, optical transfer of digital audio has numerous limitations. For example an S/PDIF connection can only handle 4 channels at a 44khz sample rate. And while it technically has 24-bit resolution, it is designed for only 20 bit.

In addition, S/PDIF can't handle many of the protocols that HDMI can.


I'll bet you a whole boatload of cash that you can't hear the difference between 16b 44.1khz and 24b 96khz and 24b 192khz.
 
T

twilyth

Guest
I've done a couple of impromptu tests and I know I can tell the difference between some mp3's and flac. But honestly, I haven't really tried to find my limits. I think that most lossless formats sound better and I try to avoid the lower resolution stuff. I think a lot of that preference though is due to artifacts that I tend to notice in tracks that are aggressively compressed. I'm particularly sensitive to resonances that don't seem to be part of the music.

The point though is, that if you want the best possible sound reproduction, HDMI is the way to go. And while so much in the realm of audio depends on what you're willing to pay, HDMI gives you the best reproduction for virtually no additional cost - whether you can appreciate the quality or not almost doesn't matter.
 

Thatguy

New Member
Joined
Nov 24, 2010
Messages
666 (0.14/day)
I've done a couple of impromptu tests and I know I can tell the difference between some mp3's and flac. But honestly, I haven't really tried to find my limits. I think that most lossless formats sound better and I try to avoid the lower resolution stuff. I think a lot of that preference though is due to artifacts that I tend to notice in tracks that are aggressively compressed. I'm particularly sensitive to resonances that don't seem to be part of the music.

The point though is, that if you want the best possible sound reproduction, HDMI is the way to go. And while so much in the realm of audio depends on what you're willing to pay, HDMI gives you the best reproduction for virtually no additional cost - whether you can appreciate the quality or not almost doesn't matter.

I will bet you large sums of money that you cannot here the difference in a proper listening enviroment.Using double blind methodolgys.
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
So what are the limitations on S/PDIF?
It won't do:
  • DTS-HD
  • Dolby TrueHD
  • PCM/lossless > 2 Channels
Also, maybe you could decode this paragraph for us mere mortals since it doesn't sound good but that's the most I can get from it.
Unfortunately I am also a mortal :laugh:.

I think it's just saying that since the clock is propagated from the source and employs no error recovery mechanism then there is potential that a distorted clock signal could prevent the DAC from lossless reception. Also check out bit slip.

The part about breaking TOSLINK cables is relevant to all fiber optic cables.
The point though is, that if you want the best possible sound reproduction, HDMI is the way to go.
HDMI is the way to go for HT nuts (like me). For audiophiles who are often more interested in stereo (and triode amps :shadedshu) then SPDIF and an outboard DAC may be the right choice. (source)

Or you could skip the whole affair and buy a bloody studio sound card. (source)
I will bet you large sums of money that you cannot here the difference in a proper listening enviroment.Using double blind methodolgys.
Audiophiles are some of the dumbest people I've met. Some of them believe in shit as retarded as bi-wiring. Also check this.
 
Last edited:
T

twilyth

Guest
OK, so most of the limits with s/pdif have to do with bandwidth in the sense of not being able to reproduce high bit rate? Is that a fair summary?

So if you want to handle more than 2 channels at a high bitrate, either you use HDMI or analog outputs from a sound card?

I'm just going to try to hit the basics so i'm going to gloss over the more technical topics.

That was an interesting article about audiophile lies.
 
Joined
Jan 14, 2009
Messages
2,644 (0.47/day)
Location
...
System Name MRCOMP!
Processor 5800X3D
Motherboard MSI Gaming Plus
Cooling Corsair 280 AIO
Memory 64GB 3600mhz
Video Card(s) GTX3060
Storage 1TB SSD
Display(s) Samsung Neo
Case No Case... just sitting on cardboard :D
Power Supply Antec 650w
no offence, but i really can tell the difference between 44100 and 96000 @ 16b.

i have no way of proving this to you however, but there is a clear difference in sound.
(i could not tell you witch sound was 44 or 96 in a double blind test, but i could tell you if it sounded different from the last test.)




oh and HDMI is not ALWAYS Superior to analogue.... if you have shitty DACs it doesn't matter how the digital audio got there.










if my receiver supported it, i would be running 4 analogue cables to it instead of HDMI, then i could buy and make use of a high end sound card with high quality DACs. not to mention upmixing / playback of 2.0 5.1 7.1 is a pain in the ass having to change the output settings in windows.

my receiver wont support any upmixing if i set my sound card to 5.1 or 7.1 output even if only playing 2 channel audio sauce. playing a blu ray in 5.1/7.1 wont work if the sound card is set to 2 channel to allow for upmixing.
(i dont upmix music i leave it play in stereo, but i have a lot of 2 channel movies i like to upmix.)
 
Last edited:
Joined
Jul 10, 2010
Messages
1,230 (0.24/day)
Location
USA, Arizona
System Name SolarwindMobile
Processor AMD FX-9800P RADEON R7, 12 COMPUTE CORES 4C+8G
Motherboard Acer Wasp_BR
Cooling It's Copper.
Memory 2 x 8GB SK Hynix/HMA41GS6AFR8N-TF
Video Card(s) ATI/AMD Radeon R7 Series (Bristol Ridge FP4) [ACER]
Storage TOSHIBA MQ01ABD100 1TB + KINGSTON RBU-SNS8152S3128GG2 128 GB
Display(s) ViewSonic XG2401 SERIES
Case Acer Aspire E5-553G
Audio Device(s) Realtek ALC255
Power Supply PANASONIC AS16A5K
Mouse SteelSeries Rival
Keyboard Ducky Channel Shine 3
Software Windows 10 Home 64-bit (Version 1607, Build 14393.969)
no offence, but i really can tell the difference between 44100 and 96000 @ 16b.

i have no way of proving this to you however, but there is a clear difference in sound.
(i could not tell you witch sound was 44 or 96 in a double blind test, but i could tell you if it sounded different from the last test.)

oh and HDMI is not ALWAYS Superior to analogue.... if you have shitty DACs it doesn't matter how the digital audio got there.

if my receiver supported it, i would be running 4 analogue cables to it instead of HDMI, then i could buy and make use of a high end sound card with high quality DACs. not to mention upmixing / playback of 2.0 5.1 7.1 is a pain in the ass having to change the output settings in windows.

my receiver wont support any upmixing if i set my sound card to 5.1 or 7.1 output even if only playing 2 channel audio sauce. playing a blu ray in 5.1/7.1 wont work if the sound card is set to 2 channel to allow for upmixing.
(i dont upmix music i leave it play in stereo, but i have a lot of 2 channel movies i like to upmix.)

Wait, don't you mean ADCs?
Analog->Digital Converters

because going to

Digital->Analog seems pretty lossless since digital streams as long as they are received properly can be decoded pretty well
meaning
Digital->Analog is not what you should be worrying about

Everything played on the computer unless you can somehow rip Super Audio CDs
is pretty much well 16bit aka Analog
 
Joined
Jan 14, 2009
Messages
2,644 (0.47/day)
Location
...
System Name MRCOMP!
Processor 5800X3D
Motherboard MSI Gaming Plus
Cooling Corsair 280 AIO
Memory 64GB 3600mhz
Video Card(s) GTX3060
Storage 1TB SSD
Display(s) Samsung Neo
Case No Case... just sitting on cardboard :D
Power Supply Antec 650w
Wait, don't you mean ADCs?
Analog->Digital Converters

because going to

Digital->Analog seems pretty lossless since digital streams as long as they are received properly can be decoded pretty well
meaning
Digital->Analog is not what you should be worrying about

Everything played on the computer unless you can somehow rip Super Audio CDs
is pretty much well 16bit aka Analog

OH?
so what would be the need for a high end audio card then? i assume this uses DACs, the quality of witch would partly deter-men the level of audio quality.





how is 16bit analogue? my understanding is its the total possible range of the dynamic level.
 
Last edited:
Joined
Mar 6, 2009
Messages
5,976 (1.08/day)
Location
Cybertron aka Canada
Processor Intel Core i5-3570K
Motherboard Asus P8Z77-V Pro
Cooling Noctua NH-D14
Memory 8GB Mushkin Blackline DDR3-1600
Video Card(s) Gigabyte GTX 670
Storage Intel 520 60GB, Seagate Barracuda XT 2TB
Display(s) BenQ 24" XL2420T
Case Corsair 550D
Audio Device(s) Sennheiser HD600, Audeze LCD-3F, Mytek Stereo 192 DSD, La Figaro 339, Burson HA-160, Geek Pulse X
Power Supply Corsair AX650
Mouse steelseries Sensei MLG edition
Keyboard Cooler Master QuickFire Pro
Software Windows 7 64-bit Home Premium
yeah the winner gets to move in with this guy lol

 
Joined
Jun 12, 2007
Messages
4,815 (0.78/day)
Location
Wangas, New Zealand
System Name Darth Obsidious
Processor Intel i5 2500K
Motherboard ASUS P8Z68-V/Gen3
Cooling Cooler Master Hyper 212+ in Push Pull
Memory 2X4GB Corsair Vengeance DDR3 1600
Video Card(s) ASUS R9 270x TOP
Storage 128GB Samsung 830 SSD, 1TB WD Black, 2TB WD Green
Display(s) LG IPS234V-PN
Case Corsair Obsidian 650D
Audio Device(s) Infrasonic Quartet
Power Supply Corsair HX650w
Software Windows 7 64bit and Windows XP Home
Benchmark Scores 2cm mark on bench with a razor blade.
I can not hear the difference between 44.1 and 196 either.
I Fired up Cakewalk Sonar 8.5 PE and ran some soft synth recordings.
Absolutely identical in sound to my ear.
Only difference to me was the file size.
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
OK, so most of the limits with s/pdif have to do with bandwidth in the sense of not being able to reproduce high bit rate? Is that a fair summary?
You've got great questions but it's hurting my head trying to figure out how to answer them. :laugh:

As I wrote in a previous (heavily edited) post, as far as I can tell, SPDIF's limitations are merely a failure to update the standard for use with multi-channel master audio. Furthermore there is little motivation for such an update because SPDIF is incapable of providing content protection (which HDMI does provide).
if my receiver supported it, i would be running 4 analogue cables to it instead of HDMI, then i could buy and make use of a high end sound card with high quality DACs. not to mention upmixing / playback of 2.0 5.1 7.1 is a pain in the ass having to change the output settings in windows.
Most modern receivers will ADC (and subsequently DAC) an analog input signal, rendering your high quality DAC ineffective anyway :ohwell:.
oh and HDMI is not ALWAYS Superior to analogue.... if you have shitty DACs it doesn't matter how the digital audio got there.
I agree. Your audio performance is only as good as the weakest element in the audio chain.
my receiver wont support any upmixing if i set my sound card to 5.1 or 7.1 output even if only playing 2 channel audio sauce. playing a blu ray in 5.1/7.1 wont work if the sound card is set to 2 channel to allow for upmixing.
(i dont upmix music i leave it play in stereo, but i have a lot of 2 channel movies i like to upmix.)
You can use ffdshow filters to upmix stereo to multi-channel (either using Dolby Pro Logic II or custom speaker matrix) and then have the processed signal bitstreamed to the receiver.
Digital->Analog seems pretty lossless since digital streams as long as they are received properly can be decoded pretty well
meaning
Digital->Analog is not what you should be worrying about
I'll write about why this is inaccurate later . . . preferably after I get on a computer with MATLAB.
 

Thatguy

New Member
Joined
Nov 24, 2010
Messages
666 (0.14/day)
I can not hear the difference between 44.1 and 196 either.
I Fired up Cakewalk Sonar 8.5 PE and ran some soft synth recordings.
Absolutely identical in sound to my ear.
Only difference to me was the file size.

There are some mix time and mix down reasons to consider higher bandwidths and bit depths, more dynamic headroom, more smearing of samples, give the end mix a bit more breathing room in some ways. same way running the tape speed higher improves the noise floor of tape,


but when it comes time to playback, I'll go grab my golden ear muffs and pretend away like th best of them.
 
Joined
Jan 14, 2009
Messages
2,644 (0.47/day)
Location
...
System Name MRCOMP!
Processor 5800X3D
Motherboard MSI Gaming Plus
Cooling Corsair 280 AIO
Memory 64GB 3600mhz
Video Card(s) GTX3060
Storage 1TB SSD
Display(s) Samsung Neo
Case No Case... just sitting on cardboard :D
Power Supply Antec 650w
How much money are you willing to bet on this with a double blind listening test ?

i dont belive i need to bet money here. when i switch between 44 and 96 on either my old z-5500s i could tell there was some sort of difference between them.
(using Optical)


if i had to guess, i belive i noticed the effect most on higher frequencys.


EDIT:
doing the same test on my newer sony system, i cannot hear a difference...
 

Thatguy

New Member
Joined
Nov 24, 2010
Messages
666 (0.14/day)
i dont belive i need to bet money here. when i switch between 44 and 96 on either my old z-5500s i could tell there was some sort of difference between them.
(using Optical)


if i had to guess, i belive i noticed the effect most on higher frequencys.


EDIT:
doing the same test on my newer sony system, i cannot hear a difference...

You have your answer. Now if your dealing with massively complex music with lots of dynamic range and many channels, that bit depth can help to give more realism to audio effect in a surround system, but its the bit depth and not the sampel rate that gives those benefits, most people have trouble with discerning 2db changes in db levels. Most modern music on the radio today has less then 8bit of dynamic range.
 
Joined
Jun 12, 2007
Messages
4,815 (0.78/day)
Location
Wangas, New Zealand
System Name Darth Obsidious
Processor Intel i5 2500K
Motherboard ASUS P8Z68-V/Gen3
Cooling Cooler Master Hyper 212+ in Push Pull
Memory 2X4GB Corsair Vengeance DDR3 1600
Video Card(s) ASUS R9 270x TOP
Storage 128GB Samsung 830 SSD, 1TB WD Black, 2TB WD Green
Display(s) LG IPS234V-PN
Case Corsair Obsidian 650D
Audio Device(s) Infrasonic Quartet
Power Supply Corsair HX650w
Software Windows 7 64bit and Windows XP Home
Benchmark Scores 2cm mark on bench with a razor blade.

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.64/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
HDMI is superior to analog and other forms of digital audio
Klipsch disagrees with you. Hell, only Logitech and Apple have really embraced digital. Why? Because all speakers are analog because the human ear is analog. If you have a digital decoder in your computer that is superior to those found in receivers, TVs, etc. you're going to get a richer sound sending an analog signal to the speakers than you will a digital one.

When it comes to audio, the only advantage of digital is fewer physical connections between the output device and the speakers. When it comes to actual sound quality, it depends on the quality of digital decoders and amplifiers.
 
Joined
Mar 6, 2009
Messages
5,976 (1.08/day)
Location
Cybertron aka Canada
Processor Intel Core i5-3570K
Motherboard Asus P8Z77-V Pro
Cooling Noctua NH-D14
Memory 8GB Mushkin Blackline DDR3-1600
Video Card(s) Gigabyte GTX 670
Storage Intel 520 60GB, Seagate Barracuda XT 2TB
Display(s) BenQ 24" XL2420T
Case Corsair 550D
Audio Device(s) Sennheiser HD600, Audeze LCD-3F, Mytek Stereo 192 DSD, La Figaro 339, Burson HA-160, Geek Pulse X
Power Supply Corsair AX650
Mouse steelseries Sensei MLG edition
Keyboard Cooler Master QuickFire Pro
Software Windows 7 64-bit Home Premium
The thing on the top right looks like a rice cooker!

I think it's a Teres Turntable and the one underneath with the yellow LED is a Soundsmith pre-amp.
 
Top