Re: Reading packets from an audio file
Re: Reading packets from an audio file
- Subject: Re: Reading packets from an audio file
- From: rethish <email@hidden>
- Date: Tue, 17 Feb 2009 17:21:39 +0530
- Thread-topic: Reading packets from an audio file
Title: Re: Reading packets from an audio file
What property are you using? We use the get number of packets property (kAudioFilePropertyAudioDataPacketCount) all the time and this is always correct
This isn't going to work for all foramts/file types - it should work ok if you are just dealing with linear pcm
Hai ,
I use the same property ( kaudioFilePropertyAudioDataPacketCount ) with the function
AudioFileGetProperty ( AudioFileID inAudioFile, AudioFilePropertyID inPropertyID,
UInt32 *ioDataSize, void *outPropertyData);
and also I am using speakhere application which deals with Linear PCM .
But still , correct packet number cannot be obtained.
I use the code:
.......
.......
UInt32 outPropertyData;
UInt32 ioDataSize;
AudioFileGetProperty( audioFileID,
kAudioFilePropertyAudioDataPacketCount,
&ioDataSize,
&outPropertyData);
......
.......
_______________________________________________
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