<div>How can I get mp3 sampleCount()?<br /> <br /> This is my attempt: <br /> <br /> <span style="color: #800080;">TagLib</span>::<span style="color: #800080;">FileRef</span>f(<span style="color: #808000;">reinterpret_cast</span><<span style="color: #808000;">const</span><span style="color: #808000;">wchar_t</span>*>(mediafile.utf16()),<span style="color: #808000;">true</span>);  //where mediafile is the file from I want get sampleCount()<br /> <span style="color: #800080;">TagLib</span>::<span style="color: #800080;">IT</span>::<span style="color: #800080;">Properties</span>prop(f.audioProperties());</div>
<divre style="margin: 0px;"><span style="color: #000080;">qDebug</span>()<<prop.sampleCount();


<div>QT Creator returns this error:<br /> <br /> error: no matching function for call to 'TagLib::IT::Properties::Properties(TagLib::AudioProperties*)'<br />          TagLib::IT::Properties prop(f.audioProperties());<br />                                                         ^<br /> <br /> 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 (<a class="moz-txt-link-freetext"
href="https://taglib.github.io/api/classTagLib_1_1IT_1_1Properties.html#ae6c3f046737347f8b341eb02a8fd7631">https://taglib.github.io/api/classTagLib_1_1IT_1_1Properties.html#ae6c3f046737347f8b341eb02a8fd7631</a>), but how?<br /> <br /> Can you help me?</div><br><div><font face=Verdana,Arial size=2>----<br>
 ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio email.it, per tutti i dettagli  <a href="http://posta.email.it/caselle-di-posta-z-email-it/?utm_campaign=email_Zimbra_102014=main_footer" target="_blank">clicca qui</a><br>  <br>
 Sponsor:<br>
 Caselle con tuo dominio su piattaforma Zimbra, fino a 30 GB di spazio, sincronizzazione dati e backup<br>
 <a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=13324&d=20160919" target="_blank" >Clicca qui</a> </font><br>