Subject: | example code omits the required specification of sample rate (fixing patch included) |
The example code omits the required specification of sample rate.
- subtype => 'pcm_16', channels => 1, endianness => 'file');
+ subtype => 'pcm_16', channels => 1, endianness => 'file', samplerate => 44100);
Subject: | SndFile.pm.patch |
--- SndFile.pm.orig 2015-08-14 23:03:48.000000000 +0200
+++ SndFile.pm 2015-08-14 23:04:26.000000000 +0200
@@ -251,7 +251,7 @@
my $f = Audio::SndFile->open("<","audiofile.wav");
my $g = Audio::SndFile->open(">","audiofile.au", type => 'au',
- subtype => 'pcm_16', channels => 1, endianness => 'file');
+ subtype => 'pcm_16', channels => 1, endianness => 'file', samplerate => 44100);
my $buffer = "";
while ($f->read_int($buffer,1024)) {