ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 117 forks source link

Seconds error #15

Closed gubertu closed 11 years ago

gubertu commented 11 years ago

Hi, i have a issue with Origami. When i play a song, the seconds that show how long time is played, are wrong. How i can fix this ? The metadata showed it fine, but the current seconds is wrong

ap4y commented 11 years ago

Hey @gubertu, can you give me a bit more information or maybe you can do I minimal project to reproduce this issue? Is it happening with all your files? do you test against player from example project? I just played couple files (flac and m4a) in my simulator and returned playback time was correct, I compared with external desktop app.

gubertu commented 11 years ago

@ap4y I used the example project to test this and i only tested with mp3 files. Test with my mp3 file : http://www.frequence.com.br/musicas/775.mp3

gubertu commented 11 years ago

@ap4y

ap4y commented 11 years ago

Hey @gubertu, sorry was I bit busy. I just checked your track from file and http sources on iOS and Mac (example projects). Returned total time is 208.2 s which is actual time of the track, I also selected random positions in track and compared returned time with external player, everything is seems fine to me. I also played you track from the beginning to the end and time was correct during playback. Maybe I'm doing something differently, can you describe in details what operation you did and what unexpected results you got?

gubertu commented 11 years ago

@ap4y I've installed the Origami with cocoapods, but now i checked the actual source in github, and i found some diferences. I copied the engine from Github, and now it works fine. Thanks for support, and check the code from cocoapods because this outdated.

ap4y commented 11 years ago

Yeah, unfortunately version in cocoa pods is a bit outdated. I'm currently implementing opus decoding. Once it will be finished I will submit a PR to the cocoa pods repo. Thanks!