[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Re: TagLib usage by a buffer not a file
From:       Nikhil Marathe <nsm.nikhil () gmail ! com>
Date:       2012-05-05 20:54:14
Message-ID: CANg7hhr6Gr1Q1iMdDS93yhOD+c2PSeagL8ffJ3GX6B9Xeio8Aw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, May 3, 2012 at 6:37 PM, Thomas CANIPEL (4SH France) <
thomas.canipel@4sh.fr> wrote:

> Dear Members,****
>
> ** **
>
> Is there a way  to use TagLib by passing a buffer ( representing the
> music) rather than passing a file path ?****
>
> (in my case it=92s a restricted case as it is only a ID3v2 Tag.****
>
> ** **
>
> I am looking into the code, but I don=92t know where to begin, should I
> investigate the TagLib::ID3v2::Tag class ( but as to use it properly it
> needs a TagLib::File* ..)  ?****
>
> ** **
>

Hi Thomas,

TagLib v1.8 (not yet released, see github master) supports IOStream. You
can extend the IOStream class to support your buffer and then TagLib will
handle it.

Nikhil

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Thu, May 3, 2012 at 6:37 PM, Thomas CANIPEL (4SH \
France) <span dir="ltr">&lt;<a href="mailto:thomas.canipel@4sh.fr" \
target="_blank">thomas.canipel@4sh.fr</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div link="blue" vlink="purple" lang="FR"><div><p class="MsoNormal">Dear \
Members,<u></u><u></u></p><p class="MsoNormal"><span lang="EN-US"><u></u> \
<u></u></span></p><p class="MsoNormal"><span lang="EN-US">Is there a way  to use \
TagLib by passing a buffer ( representing the music) rather than passing a file path \
?<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US">(in my case it’s a restricted case as it is \
only a ID3v2 Tag.<u></u><u></u></span></p><p class="MsoNormal"><span \
lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I am \
looking into the code, but I don’t know where to begin, should I investigate the \
TagLib::ID3v2::Tag class ( but as to use it properly it needs a TagLib::File* ..)  \
?<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US"><u></u> \
<u></u></span></p></div></div></blockquote><div><br>Hi Thomas,<br><br>TagLib v1.8 \
(not yet released, see github master) supports IOStream. You can extend the IOStream \
class to support your buffer and then TagLib will handle it.<br>

<br>Nikhil <br></div></div>



_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic