Re: AudioDeviceGetCurrentTime...
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.