Reading packets from an audio file
Reading packets from an audio file
- Subject: Reading packets from an audio file
- From: rethish <email@hidden>
- Date: Thu, 12 Feb 2009 16:47:59 +0530
- Thread-topic: Reading packets from an audio file
Hi all,
I need to append an newly recorded audio file with the end of an existing
file.
I use the function , AudioFileOpenURL ( CFURLRef inFileRef,
SInt8 inPermissions,
AudioFileTypeID inFileTypeHint,
AudioFileID *outAudioFile);
by setting read write permission to do it.
My idea is to count the packet number of the existing file and set it as
the starting packet number of the recording file
Is there any function to get the packet number of the audio file?
I had found a function ,
AudioFileGetProperty ( AudioFileID inAudioFile,
AudioFilePropertyID inPropertyID,
UInt32 *ioDataSize, void
*outPropertyData);
But this function doesn¹t return the correct packet number.
When I am setting the starting packet number (some integer number like
49152) manually, the recording file can be appended with the existing file
starting from that packet number.
Is I am going in a correct way?
How to get the exact packet number of an existing audio file?
Thank you
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden