diff --git a/src/cpp/ALSA_support.cpp b/src/cpp/ALSA_support.cpp index eea0bcd4bbdbdf287210254bd98dddee577051fa..aec1b077f310f3dc70e34ed783718cc3bec45f9f 100644 --- a/src/cpp/ALSA_support.cpp +++ b/src/cpp/ALSA_support.cpp @@ -28,7 +28,7 @@ DSP::ALSA_object_t::ALSA_object_t() IsHigherQualityMode = false; - blocking_mode = false; + non_blocking_mode = true; IsDeviceInputOpen = false; IsDeviceOutputOpen = false; @@ -500,7 +500,7 @@ int DSP::ALSA_object_t::open_alsa_device(snd_pcm_stream_t stream_type) } } - if (blocking_mode == false) + if (non_blocking_mode == false) { rc = snd_pcm_nonblock(alsa_handle, 0); diff --git a/src/include/ALSA_support.h b/src/include/ALSA_support.h index 4984d653d8d007929ce1421be5c92bc8f9de9fe9..54ff335433fa09d0ff5a27e48532753a5d4f932d 100644 --- a/src/include/ALSA_support.h +++ b/src/include/ALSA_support.h @@ -72,7 +72,7 @@ namespace DSP { snd_pcm_uframes_t audio_inbuffer_size_in_frames; // M.B. more meaningful variable name //! We always use the non-blocking mode in DSPElib - bool blocking_mode; + bool non_blocking_mode; //! buffer capacity int size_b;