mirror of https://github.com/mpv-player/mpv
1) HAVE_SYS_ASOUNDLIB_H/HAVE_ALSA_ASOUNDLIB_H are defined to 0/1,
not defined/undefined, use them accordingly. 2) Add ESD definitions to avoid undefined preprocessor directives warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28397 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2c4882f890
commit
390a1afef0
|
@ -44,9 +44,9 @@
|
|||
#define ALSA_PCM_NEW_HW_PARAMS_API
|
||||
#define ALSA_PCM_NEW_SW_PARAMS_API
|
||||
|
||||
#if HAVE_SYS_ASOUNDLIB_H
|
||||
#ifdef HAVE_SYS_ASOUNDLIB_H
|
||||
#include <sys/asoundlib.h>
|
||||
#elif HAVE_ALSA_ASOUNDLIB_H
|
||||
#elif defined(HAVE_ALSA_ASOUNDLIB_H)
|
||||
#include <alsa/asoundlib.h>
|
||||
#else
|
||||
#error "asoundlib.h is not in sys/ or alsa/ - please bugreport"
|
||||
|
|
|
@ -54,7 +54,8 @@
|
|||
#include "help_mp.h"
|
||||
|
||||
|
||||
#undef ESD_DEBUG
|
||||
#define ESD_RESAMPLES 0
|
||||
#define ESD_DEBUG 0
|
||||
|
||||
#if ESD_DEBUG
|
||||
#define dprintf(...) printf(__VA_ARGS__)
|
||||
|
|
Loading…
Reference in New Issue