From add6d8c3566da775e9e1cfccafa350319eab0a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kara=C5=9B?= <s176030@student.pg.edu.pl> Date: Mon, 11 Oct 2021 20:22:18 +0200 Subject: [PATCH] ALSA_support: correct returning to sampling rate in opening methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Damian KaraĹ <s176030@student.pg.edu.pl> --- src/cpp/ALSA_support.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/ALSA_support.cpp b/src/cpp/ALSA_support.cpp index 5ee7bcf..8519626 100644 --- a/src/cpp/ALSA_support.cpp +++ b/src/cpp/ALSA_support.cpp @@ -582,7 +582,7 @@ long DSP::ALSA_object_t::open_PCM_device_4_output(const int &no_of_channels, int if(rc > 0) { IsDeviceOutputOpen = true; - return 1; + return sampling_rate; } else @@ -606,7 +606,7 @@ long DSP::ALSA_object_t::open_PCM_device_4_input(const int &no_of_channels, int if(rc > 0) { IsDeviceInputOpen = true; - return 1; + return sampling_rate; } else { -- GitLab