Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Kurt Revis <email@hidden>
- Date: Sun, 11 Aug 2002 21:17:26 -0700
On Sunday, August 11, 2002, at 08:27 PM, Dale Driscoll wrote:
is there a way to play a Music CD from the terminal with a command line?
On OS X, when an audio CD is mounted, its tracks appear as ordinary
files in a volume. (By default, it's mounted at /Volumes/Audio CD.)
These are standard AIFF files (as far as I know), although they have the
extension .cdda. You can play them with anything that can play AIFF
files.
Here's some sample code for a tool which can play any audio file that
QuickTime understands. I just tried it with an audio CD and it worked
fine.
http://www.snoize.com/Code/PlayBufferedSoundFile.tar.gz
If you need to get the TOC of the CD, here's how:
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/CD_ROM/
AudioCDSample.htm
I'm sure there are many other examples out there... anyone?
--
Kurt Revis
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >(no subject) (From: Dale Driscoll <email@hidden>) |