[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44305] audiorecorder (8000, 8, 1) returns cor
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #44305] audiorecorder (8000, 8, 1) returns corrupted audio stream |
Date: |
Mon, 16 Oct 2017 09:37:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #3, bug #44305 (project octave):
Copying info posted to the mailing list by Thomas Dean:
I used the sources from octave-4.2.1.tar.gz.
This problem in in the callback function, portaudio_record_callback.
The same problem exists in the function octave_record_callback.
The variables used to convert from 24 bit to 32 bit are not zero'd
inside the loop. Therefore, bits in the high order byte remain,
corrupting the data. Fixing portaudio_record_callback fixes my problem,
but octave_record_callback should be corrected at the same time.
> diff libinterp/dldfcn/audiodevinfo.cc.orig
libinterp/dldfcn/audiodevinfo.cc
1347c1347,1349
< for (int j = 0; j < 3; j++)
---
> // 20171013 tomdean
> sample_l32 = 0; sample_r32 = 0;
> for (int j = 0; j < 3; j++)
1423a1426,1427
> // 20171013 tomdean
> sample_l32 = 0; sample_r32 = 0;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44305>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/