Re: AudioQueue and Seeking in a VBR file
Re: AudioQueue and Seeking in a VBR file
- Subject: Re: AudioQueue and Seeking in a VBR file
- From: Jens Alfke <email@hidden>
- Date: Wed, 26 Mar 2008 21:26:35 -0700
On 26 Mar '08, at 11:33 AM, Matthew Leon Grinshpun wrote:
I am working with audio queues and wondering how to properly keep
track of time, as well as seek to a certain position, in VBR files.
I'm going to need to deal with this soon too. My plan, since I'm using
AudioFileStream to read the files (over the net), is to call
AudioFileStreamSeek, which given a packet number will tell you what
byte offset it's at in the file. To get the packet number for a given
time, I'll multiply by the sample rate and access the
kAudioFileStreamProperty_FrameToPacket property to convert the frame
number to a packet number.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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