Get mp3 sampleCount()

Ossigeno ossigeno at email.it
Mon Sep 19 16:42:39 UTC 2016


How can I get mp3 sampleCount()?

 

 This is my attempt: 

 

 TagLib::FileReff(reinterpret_cast<constwchar_t*>(mediafile.utf16()),true); 
//where mediafile is the file from I want get sampleCount()

 TagLib::IT::Propertiesprop(f.audioProperties());


qDebug()<<prop.sampleCount();


QT Creator returns this error:

 

 error: no matching function for call to
'TagLib::IT::Properties::Properties(TagLib::AudioProperties*)'

          TagLib::IT::Properties
prop(f.audioProperties());

                                                        
^

 

 I'm new to TagLib, I don't know what is the correct way to get media
sampleCount(). The only way is use TagLib::IT::Properties Class Reference
(https://taglib.github.io/api/classTagLib_1_1IT_1_1Properties.html#ae6c3f046737347f8b341eb02a8fd7631),
but how?

 

 Can you help me?




 
 
 --
 ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli 
Clicca qui http://posta.email.it/caselle-di-posta-z-email-it/?utm_campaign=email_Zimbra_102014=main_footer/f
 
 Sponsor:
 Registra i domini che desideri ed inizia a creare il tuo sito web
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=13323&d=19-9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20160919/1a6f393b/attachment.html>


More information about the taglib-devel mailing list