Re: AudioFileGetPropertyInfo() on kAudioFilePropertyDataFormat returning 0?
Re: AudioFileGetPropertyInfo() on kAudioFilePropertyDataFormat returning 0?
- Subject: Re: AudioFileGetPropertyInfo() on kAudioFilePropertyDataFormat returning 0?
- From: Doug Wyatt <email@hidden>
- Date: Fri, 18 Nov 2005 12:27:53 -0800
So you're calling:
AudioStreamBasicDescription &asbd;
UInt32 propertySize = sizeof(asbd);
err = AudioFileGetProperty(someAudioFileID,
kAudioFilePropertyDataFormat, &propertySize, &asbd);
Are you setting propertySize to sizeof(asbd)? If not and propertySize
happens to be zero, then you'll get exactly the behavior you describe.
Doug
On Nov 15, 2005, at 18:01, john wrote:
Hi,
I'm calling AudioFileGetProperty() with
kAudioFilePropertyDataFormat on an AIFC file which has been
successfully opened with a call to AudioFileOpen(). The
AudioStreamBasicDescription returned is all 0's.
I have examined the header and I can see that things such as the
sample rate, bits, etc., are all correct. Also, it plays fine in
iTunes or QuickTime player.
What could be causing this?
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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