Skip Menu |

This queue is for tickets about the Audio-SndFile CPAN distribution.

Report information
The Basics
Id: 106463
Status: new
Priority: 0/
Queue: Audio-SndFile

People
Owner: Nobody in particular
Requestors: bwagner [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: 0.09



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)) {