Skip to content

Commit

Permalink
Linux ALSA was not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Page committed Mar 30, 2021
1 parent 29c2bae commit ced1f55
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions Sources/Sound/Platform/Linux/soundoutput_alsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@
#ifdef __linux__

#include "../../soundoutput_impl.h"
#ifdef HAVE_ALSA_ASOUNDLIB_H
#include <alsa/asoundlib.h>
#endif
#ifdef HAVE_ASOUNDLIB_H
#include <asoundlib.h>
#endif
#include <alsa/asoundlib.h>

namespace clan
{
Expand Down
1 change: 0 additions & 1 deletion Sources/Sound/soundoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ namespace clan
#else
#if defined(__linux__) && defined(HAVE_ALSA_ASOUNDLIB_H)
// Try building ALSA

std::shared_ptr<SoundOutput_Impl> alsa_impl(std::make_shared<SoundOutput_alsa>(desc.get_mixing_frequency(), desc.get_mixing_latency()));
if ( ( (SoundOutput_alsa *) (alsa_impl.get()))->handle)
{
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ if test "$enable_clanSound" != "no"; then
AC_CHECK_LIB(ossaudio, _oss_ioctl, sound_libs=-lossaudio)
AC_CHECK_HEADERS(asoundlib.h alsa/asoundlib.h, [have_alsa=yes && break])
if test "$have_alsa" != "no"; then
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
sound_libs="$sound_libs -lasound"
fi

Expand Down

0 comments on commit ced1f55

Please sign in to comment.