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

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

[Octave-bug-tracker] [bug #50674] audiorecorder() crashes in getaudiodat


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #50674] audiorecorder() crashes in getaudiodata()
Date: Tue, 29 Aug 2017 19:15:38 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #4, bug #50674 (project octave):

The patch is still pending, so at the moment there is no way to process audio
data while the recorder is still running.


Regarding buffer handling with portaudio, a look at the playrec code
(http://www.playrec.co.uk) might give some insights. I think there it is done
very similar to jwe's ideas with a chain of buffers.

To do realtime audio processing, at the moment this playrec toolbox is the
only option availabe for Octave. (except some weird solution like recording
externally using sox into a named pipe which can be read as a file by octave)

In Matlab, the Data Aquisition toolbox provides the functionality to record
from the soundcard continuously foreverm, so they don't have to put this
ability into the audiorecorder object. It cannot  be used for unlimited time
because its buffer cannot be flushed and will grow forever until the memory is
exhausted. 

If somebody is going to dive into the audiorecorder code, what about
introducing a getaudiodata(recorder,'flush') option, which will clear the
audio buffer after reading, thus providing the simpelest possible method for
continuous audio processing as an alternative to the Data Aquisition toolbox -
which is not availabe for Octave anyhow?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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