audio (acdt01) dump broken? (BETA4 (5))

Oliver Fromme olli at lurza.secnetix.de
Mon Sep 19 05:29:31 PDT 2005


Emanuel Strobl <Emanuel.strobl at gmx.net> wrote:
 > Ben Kaduk wrote:
 > > I also checked the handbook for copying cd's -- you are correct that
 > > 2352 is the "magic" blocksize -- I used 64k when ripping an entire
 > > (data) cd to copy it.

It's not "magic", it's simply the "Red Book" sector size of
a CD.  (The sample rate is 44.1 khz, so you have 176400
bytes per second [44100 * 4].  A single-speed drive reads
75 sectors per second, so you need 176400 / 75 = 2352 bytes
per sector.  That's where the number comes from.)

 > Hmm, AFAIK WAV _is_ PCM, both don't have any headers. But I'm out of=20
 > business for details for more than 10 years, so I may be wrong.

No, WAV is a format invented by Microsoft which contains a
header (usually 44 bytes, but it can vary).  "Raw PCM"
doesn't have a header (when handling CD audio data, it's
usually 2-channel signed 16 bits little-endian linear data).

You can use sox for conversion.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"C is quirky, flawed, and an enormous success."
        -- Dennis M. Ritchie.


More information about the freebsd-current mailing list