The following discussion probably counts as "too much info" for the OP
.cdr is also the file extension for Corel Draw drawings and iso9660 files created in MacOS X
I thought .cdr was used for a raw audio CD
image rather than tracks? I had to look quite hard to find references to this use.
Audio CDs use the Red Book CD-DA standard (IEC 60908) - sometimes called CDR.
Which
is big-endian. Swapping the bytes is usually implimented in standard burners.
It also needs to be without a header - which will otherwise be audible as a click at the start of the track.
Programs use converters which strip the headers, or they know to skip the headers of common formats which are almost right (a la wodim with sony au and microsoft wav).
CDDA audio format: The file with data for this tracks should contain stereo, 16-bit digital audio with 44100 samples/s. The byte order should be the following: MSB left, LSB left, MSB right, LSB right, MSB left and so on. The track should be a multiple of 2352 bytes.
Strictly speaking, yep, stored digital audio cannot be assumed to have a 44k1Hz sample rate - all should be resampled. However, wav files ripped from a CD at defaults is usually at the correct rate. It is very common to recode to wav - though sox will convert to cdda too. Example:
http://www.ibiblio.org/pub/Linux/doc...MP3-CD-Burning
I'm used to raw cdda audio files having extension .cdaudio - I'm guessing MS .cda is similar.
A typical CLI ripping process would be:
Code:
icedax dev=/dev/cdrom -vall cddb=0 -B -Owav
wodim dev=/dev/cdrw -v -dao -useinfo -text *.wav
note:
Some types of CD-Writers e.g. Yamaha, Sony and the new SCSI-3/mmc drives require audio data to be presented in little-endian order, while other writers require audio data to be presented in the big-endian (network) byte order normally used by the SCSI protocol.
Some audio CDs are deliberately manufactured to be non-complying - usually for DRM-type reasons.
Look for the "compact disk digital audio" logo - if it ain't there, it ain't complying.
Interestingly, the wodim man-page claims that it's cd-da writing is "similar to redbook" not the same as. I've not been able to find out more.