I’m using fmodce 3.62, and I simply cannot get reasonable times for my mp3 files. I’ve tried FSOUND_MPEGACCURATE when calling FSOUND_Stream_OpenFile(), and it really doesn’t make any difference.
For example, I’ve got a 6 minute, 29 second mp3 that’s encoded at 128kbps (not VBR). I get a value like 82 when I call FSOUND_Stream_GetLengthMs(). This happens with all of the clips I’m playing.
Is it possible that the CE version is broken? I’m pretty sure I’ve tried everything.
- Anonymous asked 14 years ago
Thanks for the quick replies!
I just tried your code change in the emulator, and I get a time of 0:00, and the elapsed time never changes.
I don’t think there’s anything strange about the MP3s I’m testing with; when I get back home, I’ll have to try with a wider range of files.
I just downloaded fmodce. I’ve tested in both the x86em and sh3 environments. Same result. I could try ARM as well, if you think that would make a difference.
BTW — when I try to play OGG on SH3, it doesn’t work properly. It works fine in x86em. IIRC, it plays back in “loops” on SH3 — it loops a ~1 second clip a couple of times, then moves on to the next 1 second segment.
As mentioned in a previous post, I did try your code change in the fmodce example. I got the same results that I’m seeing with my own source code.
I’m not getting 0 returned; I’m getting things like “22” for a 6 minute MP3. It makes no difference whether I specify MPEG_ACCURATE or not when I open the file.
I have not tested for errors with FSOUND_GetError(). Would that only be relevant if I were getting 0 for the length?
Strange that in your environment, you have no problems, but in mine, I consistently get them.
Either there’s something wrong with the libraries that I’ve got, or the MP3s that I have are encoded in some strange fashion that even your test cases don’t cover (probably not very likely).
Do you have a small MP3 that you can post that you know works that I could test my code against?
I have the same problem with mp3 files. FSOUND_Stream_GetLengthMs and FSOUND_Stream_GetTime report 63 milliseconds only while winamp and Window Media Player play them and report no problem. I tried FSOUND_MPEGACCURATE but it did not help. Please let me know can I resolve this problem. 😳
You can find a sample at [url:2xgaf7qz]http://dvl.novosoft.ru/~solo/Family_Portrait_orig.mp3[/url:2xgaf7qz]
Please login first to submit.