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

Not played mp3 http source #21

Closed dubenko closed 11 years ago

dubenko commented 11 years ago

Not played mp3 http source: http://cs9-3v4.vk.me/p10/3c1f580e38c7da.mp3

ap4y commented 11 years ago

Unfortunately, provided link returns.

dubenko commented 11 years ago

Upload file to dropbox: https://www.dropbox.com/s/p3yotngmjo8t4sc/3c1f580e38c7da.mp3

ap4y commented 11 years ago

Hey, I checked your file and id3 tag contains incorrect size information. If you open this file in hex editor and check bytes 6-9 (this bytes contain encoded id3v2 tag size), for you file it will be 00 00 0D 29. If you decode it, you will get position 1705, you should append footer (10 bytes). So size of the id3 tag is 1715, which points to zero padded area, while it should point to the mp3 sync frame. Some codecs can handle that, they are looking for sync frame after provided location, but it's not the case for CoreAudio. More information can be found here.

ap4y commented 11 years ago

I'm closing this issue since it's not related to the library. Feel free to reopen it if issue exists with other files.