<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 May 2013 17:09, Martin Peach <span dir="ltr">&lt;<a href="mailto:martin.peach@sympatico.ca" target="_blank">martin.peach@sympatico.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2013-05-18 09:57, altern wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi<br>
<br>
I would like to be able to distinguish between mono and stereo files at<br>
loading time. I am loading the sound with soundfiler using this messages<br>
which works both for stereo and mono files<br>
<br>
read -resize path_to_file table1 table2<br>
<br>
any suggestions? maybe there is some way to check if the second table is<br>
full with zeros?<br>
</blockquote>
<br>
<br></div></div>
You could first read the file into [iemlib/soundfile_info] and take the fifth item in the output list, which is the number of channels.<span class="HOEnZb"><font color="#888888"></font></span></blockquote><div><br><br></div>
<div>aha, thanks thats what I was looking for. I must have thought about the externals of course! <br></div></div></div></div>