Re: positioning of the read head with VBR mp3's
Re: positioning of the read head with VBR mp3's
- Subject: Re: positioning of the read head with VBR mp3's
- From: Ruben Perez <email@hidden>
- Date: Mon, 3 Jan 2005 13:37:17 -0800 (PST)
Here's a thought: Read and convert the whoule file
(toss away the data if you don't want to waste memory)
and index the input [frame|packet] offset with your
output frame offset. Remember that your output will (I
assume) be at a constant rate so you can work
backwards to obtain the package that you need to
request for a specific (actual) time into the file.
This may leave you with specific offset points that
you can sync to regardless of variable/constant bit
rates (at a basic level of implementation). Finer work
with the buffering scheme should allow you to get any
offset you need. Of course, this is just a scribble in
my head as of now, and we all know that it's easier
said than done (specially with the very superficial
level of knoledge shared on the workings of all these
frameworks).
Ahh, one last thing, maybe you don't need to index the
whole thing in (you do have to read it though), you
could pick a certain number of subdivisions and index
those in, then, at the time of syncing for playback,
take the two indexes that bound the offset you want,
and do the same thing on a smaller chunk of the file
to find the actual offset.
have fun! :)
=====
"With the development of the television, and the technical advance that made it possible to receive and transmit simultaneously on the same instrument, private life came to an end. , George Orwell, nineteen eighty-four.
_______________________________________________
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