fix inclusion of alsa header in non GNU/Linux systems
This commit is contained in:
@@ -22,12 +22,14 @@
|
||||
#include <portaudio.h>
|
||||
|
||||
#if defined(__gnu_linux__)
|
||||
#ifdef OUR_DICK_ENABLE_DEBUG_VERBOSE_OUTPUT
|
||||
#define ENABLE_ALSA_DEBUG
|
||||
#ifndef OUR_DICK_ENABLE_DEBUG_VERBOSE_OUTPUT
|
||||
#define DISABLE_ALSA_DEBUG
|
||||
#endif
|
||||
#else
|
||||
#define DISABLD_ALSA_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef ENABLE_ALSA_DEBUG
|
||||
#ifdef DISABLE_ALSA_DEBUG
|
||||
#include <cstdarg> //va_arg (missing include in alsa headers)
|
||||
#include <alsa/error.h> //snd_lib_error_set_handler
|
||||
namespace sfx::detail{
|
||||
@@ -38,7 +40,7 @@ namespace sfx::detail{
|
||||
namespace sfx{
|
||||
|
||||
pa_system::pa_system(){
|
||||
#ifndef ENABLE_ALSA_DEBUG
|
||||
#ifdef DISABLE_ALSA_DEBUG
|
||||
//silence excessive stderr warnings from alsa
|
||||
snd_lib_error_set_handler(detail::linux_alsa_error_handler);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user