Re: kAudioFilePropertyAudioDataPacketCount Broken for WAV files in iOS 4.2(.1)?
Re: kAudioFilePropertyAudioDataPacketCount Broken for WAV files in iOS 4.2(.1)?
- Subject: Re: kAudioFilePropertyAudioDataPacketCount Broken for WAV files in iOS 4.2(.1)?
- From: Christopher Liscio <email@hidden>
- Date: Fri, 3 Dec 2010 10:05:36 -0500
Paul,
On Dec 3, 2010, at 9:50 AM, Paul Davis wrote:
> i'm not certain, but i think you're making a basic error asking for a
> data packet count from a non-compressed format like WAV, AIFF or CAF.
> the whole concept doesn't exist for uncompressed PCM, really.
According to Doug Wyatt, this is almost identical to what afinfo uses to determine the duration of any file format:
http://lists.apple.com/archives/coreaudio-api/2005/Jul/msg00163.html
The afinfo source is no longer distributed with the SDK, sadly, so I can't dig up the actual source code at the moment to guarantee this.
Cheers,
Chris Liscio
http://supermegaultragroovy.com
Learn _your_ music with Capo: http://capoapp.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden