protux-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Protux-devel] ugly click on wav output


From: Martin Herren
Subject: Re: [Protux-devel] ugly click on wav output
Date: Thu, 12 Feb 2004 18:16:20 +0100

On Sun, 8 Feb 2004 16:57:13 +0100
Martin Herren <address@hidden> wrote:
> i noticed there is again an ugly click at the begining of wav files, 
> regardless if they were generated by rendering a song to wav in Protux, or if 
> they were converted by praf...


> Additional problem, which could be related: when converting a wav file to wav 
> or praf using praf, the output file is always 2 blocks bigger than the 
> original...
> For both problems i think it should be something related to the wav 
> headers... but didn't have time to investigate it more.

ok, it seems as i found the error. When reading a wav file, i used 
read_header(), and then started with read_fragments(), wrongly assuming reading 
will begin at the right position, in fact it begins 8 bytes too soon ("data" 
keyword + audiosize (4 bytes))... this explains why the files grow in size, and 
why i had this ugly click.
So before reading a file, skip_header() must be called, regardless if 
read_header() had been called or not. Alternatively, rewind_audio() can be used.

So i can continue to split a few concerts to wav-tracks in order to make CDs... 
and continuing working on praf !

/Martin

Attachment: pgpnJddAf5JQy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]