No ... you still use Audio::TagLib; (Update: not use Audio::TagLib::FileRef as I had first written) but, instead of $id3 = Audio::TagLib::FileRef->new( 't.mp3' ); you have $id3 = TagLib::FileRef->new( 't.mp3' ); I don't really know whether that will work - I'd probably rather try changing the package name in fileref.xs to "Audio::TagLib::FileRef", but I don't know whether that will work, either :-) The module looks to me like a dog's breakfast
I'll see if I can get anywhere with it on Windows and get back. In the meantime, just try anything you can think of.
Cheers, Rob | [reply] [d/l] [select] |
use Audio::TagLib;
$id3 = TagLib::FileRef->new( 't.mp3' );
$artist = $id3->tag()->artist();
Can't locate object method "tag" via package "Audio::TagLib::FileRef"
+at ./MP3test.pl
Thanks for getting me one step further. | [reply] [d/l] |
I'll see if I can get anywhere with it on Windows
Well ... the latest version of the taglib library (1.6.3) builds straight out of the box on MS Windows, but look what happens when one attempts to build Audio::TagLib:
...
ONLY support TagLib version 1.4.*
MSWin32 is not supported currently at Makefile.PL line 11
main::BEGIN() called at Makefile.PL line 22
eval {...} called at Makefile.PL line 22
...
Sorry - lost interest.
What version of the taglib library are you using ?
Cheers, Rob | [reply] [d/l] |
Frustrating, ain't it? :-)
I'm using Audio-TagLib-1.50_01, which requires taglib 1.5, which, needless to say is not the current version in my dist.
| [reply] |