Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Compact Disks
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JWHooper




PostPosted: Sat Sep 22, 2007 6:17 pm   Post subject: Compact Disks

I was curious how does the computer reads all the information included in the compact disk. What kind of technology is included in the computer that makes it possible to read the datas in CDs?

Thanks,

J.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Sep 22, 2007 6:35 pm   Post subject: RE:Compact Disks

It's a laser and an optical receiver. The CD acts as a (very very long) series of mirrors. If it's a shiny part, computer reads a 1. If it's a dull part, nothing is reflected so 0 is read (or vice versa, I'm not sure).
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Skynet




PostPosted: Sat Sep 22, 2007 7:03 pm   Post subject: Re: Compact Disks

A CD is a disc with a single long groove etched as a spiral into the surface. The changes in depth in the groove represent binary data. A laser is aimed at the groove. The reflected laser light has different intensities depending on the depth of the groove. The intensity of the light is converted into an electrical signal via a photosensor.

At this point, there's a stream of binary data going into the CD hardware. Even in the case of a normal audio CD, this isn't pure data - there are some error correction bits built into the stream. The data is passed through a module which performs error correction using these extra bits and spits out the corrected true data. (no more additional error correction bits) What the "true" data means is dependent on the use of the CD. I believe for audio CDs, it's just alternating left/right channels - 16 bits for the left, 16 bits for the right, then repeat.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: