From eb4917fcb4e9d4391203a36e67257572eaef2aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kara=C5=9B?= <s176030@student.pg.edu.pl> Date: Mon, 8 Nov 2021 19:09:59 +0100 Subject: [PATCH] ALSA_support: Log correction 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cpp/ALSA_support.cpp b/src/cpp/ALSA_support.cpp index 43cfce7..1ad6b1a 100644 --- a/src/cpp/ALSA_support.cpp +++ b/src/cpp/ALSA_support.cpp @@ -43,6 +43,7 @@ DSP::ALSA_object_t::ALSA_object_t() InDevNo = 1; NextBufferOutInd = 0; + NextBufferInInd = 0; /* 44100 bits/second sampling rate (CD quality) */ sampling_rate_alsa = 44100; @@ -663,7 +664,7 @@ long DSP::ALSA_object_t::open_PCM_device_4_output(const int &no_of_channels, int else { - DSP::log << "Device has not been opened." << endl; + DSP::log << "Device has not been opened. Error code: " << rc << endl; return -1; } } @@ -686,7 +687,7 @@ long DSP::ALSA_object_t::open_PCM_device_4_input(const int &no_of_channels, int } else { - DSP::log << "Device has not been opened." << endl; + DSP::log << "Device has not been opened. Error code: " << rc << endl; return -1; } } -- GitLab