• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there an component like windows' MCI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Is there an component like windows' MCI
  • Next by Date: Re: internal device dropouts
  • Previous by thread: Re: Is there an component like windows' MCI
  • Next by thread: CoreAudio Introduction?
  • Index(es):
    • Date
    • Thread