Skip Menu |

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

Report information
The Basics
Id: 94951
Status: resolved
Priority: 0/
Queue: Audio-Wav

People
Owner: Nobody in particular
Requestors: hrk8 [...] drumsoft.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [Audio::Wav] Write::write() bug at 16bit-2channel.
Date: Wed, 23 Apr 2014 17:47:27 +0900
To: bug-Audio-Wav [...] rt.cpan.org
From: Kataoka Haruka <hrk8 [...] drumsoft.com>
Hi Brian. Write::write() failed at 16(or grater)bits and 2(or grater)channels. It seems that many samples are not written correctly. It caused by following code: Wav::Write.pm 281: return $self -> write_raw( @samples ); $samples[0](=sample from left channel) and $samples[1](=sample from right channel) are assigned as 2nd($data) and 3rd($len) arguments of Write::write_raw(). It will be fixed like this: 281: return $self -> write_raw( join '', @samples ); Thanks. -- Haruka Kataoka

Message body is not shown because sender requested not to inline it.

RT-Send-CC: hrk8 [...] drumsoft.com
Hello Haruka. I have applied the fix you suggest and released it in 0.14, which should be on a cpan mirror near you shortly. Thanks, Brian Szymanski On Wed Apr 23 04:47:40 2014, hrk8@drumsoft.com wrote: Show quoted text
> Hi Brian. > > Write::write() failed at 16(or grater)bits and 2(or grater)channels. > It seems that many samples are not written correctly. > > It caused by following code: > > Wav::Write.pm > 281: return $self -> write_raw( @samples ); > > $samples[0](=sample from left channel) and $samples[1](=sample from > right channel) > are assigned as 2nd($data) and 3rd($len) arguments of > Write::write_raw(). > > It will be fixed like this: > > 281: return $self -> write_raw( join '', @samples ); > > Thanks.
Subject: Re: [rt.cpan.org #94951] [Audio::Wav] Write::write() bug at 16bit-2channel.
Date: Mon, 28 Apr 2014 11:29:21 +0900
To: bug-Audio-Wav [...] rt.cpan.org
From: Kataoka Haruka <hrk8 [...] drumsoft.com>
Brian. I received new version. Thank you! -- Haruka Kataoka (2014/04/27 13:55), Brian Szymanski via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=94951 > > > Hello Haruka. > > I have applied the fix you suggest and released it in 0.14, which should be on a cpan mirror near you shortly. > > Thanks, > Brian Szymanski > > > On Wed Apr 23 04:47:40 2014, hrk8@drumsoft.com wrote:
>> Hi Brian. >> >> Write::write() failed at 16(or grater)bits and 2(or grater)channels. >> It seems that many samples are not written correctly. >> >> It caused by following code: >> >> Wav::Write.pm >> 281: return $self -> write_raw( @samples ); >> >> $samples[0](=sample from left channel) and $samples[1](=sample from >> right channel) >> are assigned as 2nd($data) and 3rd($len) arguments of >> Write::write_raw(). >> >> It will be fixed like this: >> >> 281: return $self -> write_raw( join '', @samples ); >> >> Thanks.