ap4y/OrigamiEngine

a mp3 file can not play

hament opened this issue · 3 comments

i have a mp3 file can not play,when i debug the frame work ,i do not know why the function below
OSStatus result = AudioFileOpenWithCallbacks(_source, audioFile_ReadProc, NULL,
// audioFile_GetSizeProc, NULL, 0,
// &_audioFile);

will always error in coreaudiodecoder.m file;

However i replace it with :
result = AudioFileOpenURL((__bridge CFURLRef) [source url],
kAudioFileReadPermission,
0,
&_audioFile);

the mp3 file can play luckly! maybe it cause can not read the metadata of the file ,but ok , I use tablib to read the id3 tag.

The OrigamiEngine framework is Good. By the way , the framework can support ogg file next version?

ap4y commented

Hey @hament can you send me a file to check what can be wrong?

Regarding ogg, it is possible to add support for this format. Please create a new issue for this feature request and I will see what I can do once I have some time.

ap4y commented

This file has invalid id3v2 tag size, see issue #37. You can check it yourself, by removing 417 bytes starting from offset 1294, after this file will work.