Mercurial > octave
changeset 27883:8675d88a0e26
Change audiorecorder default settings to Matlab compatible values (bug #55530).
Default settings for audiorecorder are 8000Hz, 8 bit, 1 channel now.
* audiodevinfo.cc (audiorecorder::audiorecorder): In constructor, initialize fs
to 8000, nbits to 8, channels to 1.
author | Lars Kindermann <lars.kindermann@reglos.de> |
---|---|
date | Sun, 24 Nov 2019 13:22:58 +0100 |
parents | 65a54ab6ceaa |
children | d9e6972c6f03 |
files | libinterp/dldfcn/audiodevinfo.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/audiodevinfo.cc Sun Nov 24 12:54:59 2019 +0100 +++ b/libinterp/dldfcn/audiodevinfo.cc Sun Nov 24 13:22:58 2019 +0100 @@ -1504,7 +1504,7 @@ audiorecorder::audiorecorder (void) : octave_callback_function (nullptr), - id (-1), fs (44100), nbits (16), channels (2), sample_number (0), + id (-1), fs (8000), nbits (8), channels (1), sample_number (0), end_sample (-1), tag (""), y (), userdata (Matrix ()), left (), right (), stream (nullptr), input_parameters (), type () { }