in reply to Audio::WAV data problem

What is the compression code? What values are you seeing? Does the file size increase if you increase the length of the silence?

My quick search produced this:

Silent Chunk - "slnt" A silent chunk is used to specify a segment of silence that will last some duration of samples. It is always contained within a wave list chunk. While this chunk represents silence, it does not necessarily define a zero volume or baseline sample. It actually holds the last sample value present in the preceding data chunk in the wave list chunk. If there is no preceding data chunk in the wave list chunk, a baseline value should be used (127 for 8-bit data, 0 for 16-bit or higher data). This may seem trivial, but if not followed, may cause undesired clicks and pops in the audio signal.

Replies are listed 'Best First'.
Re^2: Audio::WAV data problem
by spencoid (Acolyte) on Apr 19, 2013 at 02:06 UTC
    reading the values, i see mostly 0s but a few -1 and 1. using audacity to add more silence to the file, i do get a larger file ranging in size as one would expect with more samples. i think audacity is adding 0 level samples not using the "silent" chunk. i can send the wav file i am using if i know how to send it to you. if i edit the file in audacity using the draw function that allow you to edit each sample individually, i get pretty much random results instead of anything that makes sense. raising some 0 samples to something above the midline (0) i get a mix of negative values and pretty much all of them are distorted as if there is some offset in the bytes. the info dump shows numbers of bytes in samples and header, and total data that all add up correctly. thanks for any help.