octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49927] wavread/audioread refuses to continue


From: Kai-Michael
Subject: [Octave-bug-tracker] [bug #49927] wavread/audioread refuses to continue reading wav-file
Date: Mon, 26 Dec 2016 21:53:53 +0000 (UTC)
User-agent: Mozilla/5.0 (Linux; Android 5.0.2; LIFETAB_S1034X Build/LRX22L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Safari/537.36

Follow-up Comment #8, bug #49927 (project octave):

Here is some further information:
The previous test ran successfully up to the end of the file. It took 104.7
minutes versus 93 minutes for just scanning the file without any data
processing.
After that I started the script on a 588.298 kB wav file. I got immediately
the error message:
out of memory error or dimension too large for Octave's index type.
At that time "whos" reported memory usage of 822177 bytes.
The script line that caused the error was:
[Y,fs,Nbits]=wavread(wavname,1);
which means: read one sample and return it in Y, get the the sample rate fs
from the file header and the bits per sample in Nbits.
This worked for the previous file with ~295 MB, but does not work for larger
2nd file with ~574.5 MB. The wav file header is 44 bytes long.
So the task is to read just the first 48 bytes (1 sample = 4 bytes).
Regards Kai


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49927>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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