# HG changeset patch # User Amine Sehili # Date 1550692364 -3600 # Node ID 90dd15daf373aa89625bbc5ea2896e789421eeaf # Parent daeb73d16dbffafb2db492f1b682b86066b9c49d update _get_audio_parameters diff -r daeb73d16dbf -r 90dd15daf373 auditok/io.py --- a/auditok/io.py Tue Feb 19 21:07:19 2019 +0100 +++ b/auditok/io.py Wed Feb 20 20:52:44 2019 +0100 @@ -153,8 +153,10 @@ err_message.format(ln=long_name, sn=short_name, val=param) ) parameters.append(param) + sampling_rate, sample_width, channels = parameters use_channel = param_dict.get("use_channel", param_dict.get("uc", 0)) - return tuple(parameters) + (_normalize_use_channel(use_channel),) + use_channel = _normalize_use_channel(use_channel) + return sampling_rate, sample_width, channels, use_channel def _array_to_bytes(a):