Prev: HERest error
Next: image
From: mahmoud on
"Catherine " <infrasound20(a)yahoo.com> wrote in message <hfurbj$qvb$1(a)fred.mathworks.com>...
> I am running the wavread command:
> w = wavread('filename','size');
>
> on a folder of wav files. Every once in a while I get the error message:
> ??? Error using ==> wavread at 119
> Error reading PCM file format.
>
> if I then type: w = wavread('filename');
> it reads in the file just fine, but I get the same error if I type:
> w = wavread('filename',[1 10]);
>
> all the wavfiles were generated in exactly the same way, although the ones that generate the errors are smaller (but at least 1 min long at 48kHz sampling rate). The rest of them are too big to read in all at once, so I need to get the size first.
>
> -C

I think it happened because the wave file is a stereo one
try thise
B=buffer(inputFile(:,1),length(frameT));
 | 
Pages: 1
Prev: HERest error
Next: image