• 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: AudioDeviceGetCurrentTime...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioDeviceGetCurrentTime...


  • Subject: Re: AudioDeviceGetCurrentTime...
  • From: Doug Wyatt <email@hidden>
  • Date: Mon, 23 Feb 2004 12:10:00 -0800

On Feb 19, 2004, at 7:19, Emmanuel Verlynde wrote:

How obtain current time and length of aiff file from audio cd?

AudioDeviceGetCurrentTime return misc huge values but i don't know use
them...

I tried to use AudioDeviceTranslateTime to convert first values to
hour/minute/sec time but with no results...

And to obtain track/disc length of aiff file/audio cd?

Someone can help me?


Open the audio file (there is a filesystem that treats the audio CD's tracks as AIFC's...), look at the sample rate and number of samples and do the math.

You can use the API's in AudioToolbox/AudioFile.h to do this.

AudioDeviceGetCurrentTime and AudioDeviceTranslateTime are dealing with the audio I/O hardware, and have no concept of CD's.

Doug

--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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: 
 >AudioDeviceGetCurrentTime... (From: "Emmanuel Verlynde" <email@hidden>)

  • Prev by Date: Re: Is there any clock drift compensation mechanism in the HAL?
  • Next by Date: Re: Is there any clock drift compensation mechanism in the HAL?
  • Previous by thread: AudioDeviceGetCurrentTime...
  • Next by thread: AudioUnitEvent Listener
  • Index(es):
    • Date
    • Thread