<div dir="ltr">I chose a small file and could see how soundfile_info is faster (btw, why are you using -stdlib?)<div><br></div><div>So, shall we open a feature request on github?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sex., 28 de jan. de 2022 às 17:05, oliver <<a href="mailto:oliver@klingt.org">oliver@klingt.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Miller Puckette via Pd-list wrote:<br>
> Excellent - nothing to do then.  My favorite kind of dolist.<br>
<br>
<br>
Well, not quite ...<br>
<br>
Lucas' method of using [soundfiler] to get a (really long) soundfile's <br>
length still loads the complete file into RAM, as it would into an <br>
array. (i'm talking a 60 minute long audio file here)<br>
<br>
This has 3 drawbacks:<br>
<br>
1.) audio dropout while loading, depending on the file's length<br>
2.) can use huge amounts of RAM<br>
3.) takes much longer than [soundfile_info]<br>
<br>
attached is an example patch that illustrates both approaches.<br>
<br>
(use the same long soundfile for each method to see what i mean)<br>
<br>
<br>
<br>
then again: since i use IEMLIB regularly it's not that much of a hassle. <br>
it's just not plain vanilla, that's all ...<br>
<br>
<br>
best<br>
<br>
oliver<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>