TagLib usage by a buffer not a file

Thomas CANIPEL (4SH France) thomas.canipel at 4sh.fr
Wed May 23 14:17:47 UTC 2012

Dear Lukas,



Thanks for ByteVectorStream, it actually works fine using this implementation of IOStream.


It was actually very close to what I have done for implementation, and I figured out that the method seek was not exact.. so the position was slightly different .. leading to the non-creation of frames. ( but enough to get parts of the ID3V1 tag.









De : taglib-devel-bounces at kde.org [mailto:taglib-devel-bounces at kde.org] De la part de Lukáš Lalinský
Envoyé : mercredi 23 mai 2012 16:14
À : taglib-devel at kde.org
Objet : Re: TagLib usage by a buffer not a file


On Wed, May 23, 2012 at 3:52 PM, Thomas CANIPEL (4SH France) <thomas.canipel at 4sh.fr> wrote:

Dear Nikhil,


I made a simple class extending from IOStream and then I am using it to initialize an MPEG::FILE, in my case I correctly get the ID3v1 field, but for a reason no ID3V2 frames seems to be created.


As I am correctly reading from my IOStream I am guessing that ID3v2::FrameFactory is not yet able the create the framelist correctly from the IOStream.


Is it planned to support it ?


It should work. FileStream is also just an implementation of IOStream and it works there. Assuming you already have the full file loaded in memory, can you try using ByteVectorStream to make sure it's not a bug in your code?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20120523/aa660621/attachment.html>

More information about the taglib-devel mailing list