Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Using S/PDIF to send audio from your PC

Windows Vista Team Blog






Speedup My PC
Reply
  #1 (permalink)  
Old 03-05-2008
Paul's Avatar
Moderator
 

Join Date: Feb 2007
Location: wicklow mts
Posts: 10,492
Paul will become famous soon enough
Thanks: 1
Thanked 7 Times in 7 Posts
Using S/PDIF to send audio from your PC
The following is an article from another of my colleagues on the Windows Vista Sound team, Kristin Carr. Kristin is a Program Manager and works with Steve Ball, who previously has shared his insights into how Windows Vista handles sound. If you have questions for Kristin, please leave a comment below.
Many people have a general idea of what S/PDIF is -- perhaps by seeing it as a label on an audio output, or on a feature list for a product. But what is it exactly, and how do you use it? This post will cover some of those details.
On a PC, the audio is stored and processed digitally until the final output stage when it is usually converted to an analog signal that directly feeds your speakers. However, there may be times when you want to transmit the signal digitally to a different device that will be used to play the sound, such as a receiver. In these cases, you may want to postpone converting the signal to an analog one, and instead transmit the signal digitally to avoid any degradation and additional noise that may occur when transmitting an analog signal.
For this purpose, S/PDIF (Sony/Philips Digital Interconnect Format) was developed. Often referred to by the name of the connector (including Toslink, RCA, or simply "Optical" or "Digital Out"), S/PDIF specifies a method of transmitting a digital signal so that it can be received and interpreted correctly by the connected device. You may ask yourself, "How complicated is it to transmit a signal? Why do we need a special protocol?" Consider that the digital signal consists of a series of bits, and within that series, the bits are grouped to correspond to a sample of audio, and an even larger subset of those are grouped to correspond to a particular channel. In order to enable a receiver to properly interpret all of those bits in the correct order, it is necessary to have a format for transmitting those bits. This is where S/PDIF comes in.
S/PDIF can be used to transmit two channels of digital audio in real time over a single connection. S/PDIF specifies a particular bit pattern that a receiver can use to latch onto the stream. Once the receiver has synced up with the stream, S/PDIF specifies the order of the audio bits and how they should be arranged in a stream so that the receiver can properly interpret it.
However, there may be times when you wish to transmit more than two channels of audio over the S/PDIF link. This is where compressed audio can be used. Audio compression is a technique used to transmit equivalent information using fewer bits. This is done through a number of techniques. Some techniques, referred to as perceptual coding, take advantage of the fact that humans can only hear certain sounds. These methods of compression usually involve discarding bits that only contribute a minimal amount to what a listener needs to recognize a given sound. Other methods take advantage of numerical redundancies in the signal in order to effectively transmit the same information in a smaller amount of space. Dolby Digital and DTS are two common types of compression. Regardless of the technique, compression enables a digital audio signal to use fewer bits to transmit the audio.
The result of this compression is that it enables you to transmit the content for up to 5.1 channels of audio over S/PDIF in space that would have only fit 2 channels if the audio had been uncompressed. This is great once the signal has been encoded (synonymous with compressed), but once a signal has been encoded, that same signal must also be decoded after it has been received so that it can be sent to speakers. This means that your receiver must be capable of decoding the compressed audio signal in order for you to hear the correct sound. This is the tradeoff necessary to allow you to transmit more than two channels of audio over S/PDIF.
Another direct consequence of transmitting a compressed audio signal instead of an uncompressed audio signal (more commonly known as PCM) is that the volume of that signal cannot be modified once it has been encoded. Because the bits in an encoded signal no longer directly correspond to the volume of that signal, it is impossible to increase the volume until it is decoded. This explains why your PC cannot control the volume of your sound when you are using Dolby Digital or DTS as the output. The connected device will be the only place where the volume can be changed.
To recap, in order to avoid the electrical interference and noise present on an analog connection, consider using S/PDIF to transmit the signal digitally. If you'd like to transmit more than two channels, consider sending encoded content which allows you up to 5.1 channels over S/PDIF. You may also want to consider HDMI, but that's a post for another time!
http://windowsvistablog.com/aggbug.aspx?PostID=495226

More...
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Article ID: 940685 Un priphrique audio affiche le son GCL au lieu de son DTS de la connexion S/PDIF de Windows Vista KBArticles French 0 10-23-2007 20:00
Article ID: 940685 Ein Audio-Gerńt gibt PCM-Audio statt DTS-Audio aus der Verbindung von S/PDIF in Windows Vista aus KBArticles German 0 10-22-2007 21:20
Article ID: 940685 An audio device outputs PCM audio instead of DTS audio from the S/PDIF connection in Windows Vista KBArticles English 0 10-22-2007 20:00
digital out put via s/pdif briinthesky microsoft.public.windows.vista.music pictures video 2 08-11-2007 20:26
s/pdif jan3480 microsoft.public.windows.vista.performance maintenance 5 07-26-2007 16:05




All times are GMT +1. The time now is 17:13.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120