bugGNU Octave - Bugs: bug #55530, audiorecorder default settings...

 
 

bug #55530: audiorecorder default settings incorrect

Submitted by:  Lars Kindermann <larskindermann>
Submitted on:  Sun 20 Jan 2019 10:33:21 PM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  5.0.1 Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 20 Jan 2019 10:49:26 PM UTC, comment #1:

I attached a patch for audiodevinfo.cc that fixes bug #44305 by providing a workaround for an 8-bit bug in portaudio:

https://portaudio.music.columbia.narkive.com/McNZ8eJe/pauint8-and-paint8-always-get-zero-data-in-audio-input-callback-function

If 8 bits are requested, portaudio is now called with 16bit instead and the results are rescaled before returning to Octave.

audiorecorder default settings are changed to 8000 Hz, 8 Bit, 1 channel, according to the documentation and for Matlab compatibility.

Additionally I marked unused callbacks and code with FIXME comments, as the code of audiodevinfo.cc is actually not really in a final state yet.

(file #46051)

Lars Kindermann <larskindermann>
Sun 20 Jan 2019 10:33:21 PM UTC, original submission:

The help for audiorecorder states 8 bit mono audio at 8000 Hz sample rate as default.
This is also the Matlab default.

But current audirecorder initializes to 16 bit stereo at 44100 Hz.

-verbatim-

Perhaps this was chosen due to
bug #44305: audiorecorder (8000, 8, 1) returns corrupted audio stream

Lars Kindermann <larskindermann>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46051:  audiodevinfo.cset added by larskindermann (7KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by larskindermann (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-20 larskindermann Attached File- => Added audiodevinfo.cset, #46051

    Back to the top


    Powered by Savane 3.4