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: Tue, 27 Dec 2016 21:23:32 +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 #10, bug #49927 (project octave):

You could try the single line of code of my previous posting on files of
similar size. It failes on large files. That is a bug.
In the meantime I have done some further testing. I have checked the time
audioread takes to read 100 blocks of 4096 samples in a read loop on files of
different sizes. It turns out that the time is proportional to the file size,
not to the block size. audioread obviously does not read the data block
requested but instead the whole file. That is the reason, why it failes on
large files and why it is a factor of 112 slower than MATLAB on a 270 MB
file.
File size : 128. 270   321 504 MB
Read time : 13s  29.6s 33s 52s for 100 4k-sample blocks
A file with 575 MB could not be processed.
If you do not call this a bug, it is at least worst programming practice.
I am including the test script as an attachment.
By the way, in the code I tried to use the function kbhit(1) as a means for
early termination of the script by pressing the key "e" on the keyboard. It
does not work either. Different from its desription in the documentation, it
seems to wait for further input instead of returning immediately.


(file #39321)
    _______________________________________________________

Additional Item Attachment:

File name: audioread_BugCheck.m           Size:2 KB


    _______________________________________________________

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]