<div dir="ltr">WAV files larger than 2^31+8 bytes are asking for compatibility trouble on any processor as the format itself contains a 32 bit data size. It might be worthwhile looking at RF64 or FLAC file formats.<div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 December 2015 at 11:31, Tsuda Kageyu <span dir="ltr"><<a href="mailto:tsuda.kageyu@gmail.com" target="_blank">tsuda.kageyu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jingbo,<div><br></div><div>It's a limitation by design. TagLib handles the length and offset of files with the type <b>long</b>. So it can handle large files (larger than 2GB) only in which <b>long</b> is 64-bit like GCC on 64-bit Linux. For most 32-bit compilers, <b>long</b> is 32-bit and TagLib can't handle large files.</div><div><br></div><div>In taglib2 branch, we have made some changes to remove the limitation. It handles the length and offset of files with <b>long long</b> which is 64-bit in most systems.</div><div><br></div><div>Regards,</div><div>Kageyu</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-12-23 12:24 GMT+09:00 Zhang, Jingbo <span dir="ltr"><<a href="mailto:jingbo.zhang@auralic.com" target="_blank">jingbo.zhang@auralic.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">sorry to bother you, but this problem has bother me a couple of days.<div><br><div>When I compile taglib in 64 bit operation system, it can read wav file more than 2GB.</div><div><br></div><div>But when I compile taglib in 32 bit operation system, it can't. </div><div>And then I add "SET ( CMAKE_CXX_FLAGS "-D_FILE_OFFSET_BITS=64" CACHE STRING "compile flags" FORCE)" in top of CMakeLists.txt, And the file "taglib\CMakeFiles\tag.dir\flags.make" has "-D_FILE_OFFSET_BITS=64" in "CXX_FLAGS", but it can't work. </div></div><div>So I am helpless in it. </div><div><br></div><div>Thanks a lot!</div><div><br></div></div>
<br></div></div>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>