[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44305] audiorecorder (8000, 8, 1) returns cor
From: |
Lars Kindermann |
Subject: |
[Octave-bug-tracker] [bug #44305] audiorecorder (8000, 8, 1) returns corrupted audio stream |
Date: |
Fri, 18 Jan 2019 23:16:42 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 |
Follow-up Comment #4, bug #44305 (project octave):
There seems to be a bug in portaudio with 8-bit formats:
https://portaudio.music.columbia.narkive.com/McNZ8eJe/pauint8-and-paint8-always-get-zero-data-in-audio-input-callback-function
But in fact there is no reason to necessarily use the different formats that
portaudio offers in Octave. They just specify the buffer format portaudio will
output the data to, regardless of the hardware settings.It is doing soby
scaling and casting if necessary- And as in Octave the data is always returned
as floats, scaled to -1..1, 8 bits can be simulated by only using the upper 8
bit of int16 before scaling.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?44305>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44305] audiorecorder (8000, 8, 1) returns corrupted audio stream,
Lars Kindermann <=