Re: How to implement a time line? (current playing time line)
Re: How to implement a time line? (current playing time line)
- Subject: Re: How to implement a time line? (current playing time line)
- From: William Stewart <email@hidden>
- Date: Mon, 24 Nov 2008 12:51:47 -0800
MP3 is typically not a CBR format, but is a VBR format, so you would
not know how many bytes are used to represent a sliver of time.
So, you would count audio packets, and deal with everything as an
audio packet - where each packet is a variable size but represents the
same length of time.
On Nov 22, 2008, at 9:27 PM, Ignacio Enriquez wrote:
I wonder how can I implement a time line
I am planning to use something like a progress bar but I am not sure
how to get the current playing time from a Queue.
I am using CBR compressed files ,like *mp3, inside my queue.
I have an Idea.
Since I am using CBR files, I could know the current playing time by
looking at the current packet (the one which is played at that moment)
and calculate the time by doing:
currentPacket/totalPackets and multiplying this by the length of the
song.
Am I in the correct way?
Or Is there any easier way or maybe a function I can use?
Thanks In Advance.
Ignacio.
--
_____________________________________________
Guillermo Ignacio Enriquez Gutierrez
Shibaura Institute Of Technology
Faculty of Engineering
Department of Information Science & Engineering
Senior Student
_____________________________________________
_______________________________________________
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
_______________________________________________
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