Yes it's a bug. I only tested with the built-in samples in the soundfiler-help patch which are 44.1kz and as Lucas discovered, higher values are truncated leading to incorrect numbers.
Here is a tentative fix: https://github.com/pure-data/pure-data/pull/240 https://github.com/pure-data/pure-data/pull/240
On Oct 27, 2017, at 8:21 PM, pd-list-request@lists.iem.at wrote:
Date: Fri, 27 Oct 2017 16:47:09 +0200 From: Philipp Schmalfuß <philipp.schmalfuss@uni-weimar.de mailto:philipp.schmalfuss@uni-weimar.de> To: pd-list@mail.iem.at mailto:pd-list@mail.iem.at Subject: [PD] soundfiler issues Message-ID: <20171027164709.17476649s1qw11oo@webmail.uni-weimar.de mailto:20171027164709.17476649s1qw11oo@webmail.uni-weimar.de> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed"
dear list,
i ran into some trouble with the new features of [soundfiler]
recently. It does not output the samplerate of .wave files correctly
(haven't tried .aiff yet). With 96kHz files i got 30464, with 192kHz
files 60928. Iemlib/soundfile_info did gave me the correct samplerate
of the same soundfiles. So, is this a bug?
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/