[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "Burn" CD audio to a file



On Mon, 25 Nov 2002 14:11:14 -0500, Hubert Chan <hubert@uhoreg.ca>
wrote:

>>>>>> "Vineet" == Vineet Kumar <debian-user@virtual.doorstop.net> writes:
>
>Vineet> * Bill Moseley (moseley@hank.org) [021125 06:51]:
>>>  Is there any way to emulate a cdrom device?  Granted CDRs are
>>> inexpensive, but I was wondering if there was a way to "burn" a cd to
>>> a file for testing and they play it like an audio CD.
>
>Vineet> You won't be able to play it like an audio CD.  When your CD-ROM
>Vineet> drive does this, it does it at a much lower level; the OS just
>Vineet> gives it cd-player-style commands like "play" "stop" "skip",
>Vineet> etc, rather than reading the bits of music and feeding them to
>Vineet> the soundcard.  The CD-ROM is connected directly to the
>Vineet> soundcard and just spews the music over there without processing
>Vineet> it at all.  So until you put the music under the laser, you
>Vineet> won't be able to test it "like and audio CD."
>
>Some CD players, e.g. alsaplayer and the xmms-cdread plugin, read the
>digital audio from the disk, and dump it to the sound card.  This lets
>alsaplayer do funky stuff, like playback at double speed for the
>Chipmunks version, or playing the CD backwards to check if your band has
>been inserting subliminal messages (YVAN EHT NIOJ).  But they might
>still use CD-specific ioctl's, which would prevent them from working on
>plain files.

It is possible to read the music files on a CD digitally and pass them
to the soundcard. I am sure of this because I don't have an analogue
cable to connect either CD drive to the soundcard, but I can still
play CDs. I have used sox from the console - not very often; I usually
play CDs on my hi-fi.

I can't remember whether sox can read the CD directly or whether I had
to pipe the output from cdda2wav to sox; I think the latter.

I don't see why this shouldn't work with a loopback-mounted ISO image
- as per Sean's suggestion - if I understand correctly, the loopback
mounting system is transparent, so whatever is reading the
loopback-mounted image sees it as a normal CD drive, and any
CD-specific ioctls are handled correctly. I haven't actually tried
this; I'm ashamed to confess I use Cool Edit in Windoze for what
you're trying to do.

The quick fudge option would be to burn the music to a CD-RW, and play
it using the play button on your CD drive, cos your hi-fi's CD player
won't read CD-RWs (AARGH).



Reply to: