devkitPro / libogc

C Library for Wii and Gamecube homebrew
https://devkitpro.org/viewforum.php?f=40
Other
283 stars 69 forks source link

Get track location in MP3Player? #126

Open HTV04 opened 2 years ago

HTV04 commented 2 years ago

I was looking through the MP3Player code and I don't think there's a function for getting the current position while playing an MP3 file. Is it possible to implement this?

DacoTaco commented 2 years ago

quick look at this rfc (request for change) & code makes me wonder what you mean with 'current position'. do you mean in time, in buffer location or in frame?

MP3 file is split up in frames, each frame being x seconds of the song and y bytes long. so with current position, do you mean x seconds of a total of z seconds of the mp3 that has been played or...?

HTV04 commented 2 years ago

do you mean x seconds of a total of z seconds of the mp3 that has been played

Yes, unless there's a different standard that is usually used.