Re: Is there an component like windows' MCI
Re: Is there an component like windows' MCI
- Subject: Re: Is there an component like windows' MCI
- From: David Duncan <email@hidden>
- Date: Mon, 17 Jun 2002 07:40:30 -0400
On Monday, June 17, 2002, at 04:19 AM, Carl Yang (HangZhou) wrote:
Hi
I am new to Mac, and I want to port a windows program to this
platform.
I the program, I should read an audio CD's track
information,such as the
length
of a track. At windows platform, I use MCI to send my command,
and get the
information
I want. Is there some similar component at Mac, or some else I
can get the
information.
There are two methods of getting the information from an Audio CD.
1. Apple has an example that includes how to detect that a
particular volume is an Audio CD, and then reads the track
information from the CD. This is located at
<
http://developer.apple.com/samplecode/Sample_Code/Devices_and_Hardware/CD_ROM/
AudioCDSample.htm>
2. If you just want to get the information about one file in
particular, then create a reference to it (FSRef or FSSpec) and
then call ParseAIFFHeader() which will give you all the
information you need to play the file, which includes the length
(in bytes).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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.