changeset 34258:11ab37356dd1

ai_alsa: set appropriate #defines to work with ALSA 0.9.x headers
author diego
date Mon, 14 Nov 2011 09:58:24 +0000
parents e60590848ec6
children a9bfa5a9fcac
files stream/ai_alsa.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/ai_alsa.c	Sun Nov 13 17:05:58 2011 +0000
+++ b/stream/ai_alsa.c	Mon Nov 14 09:58:24 2011 +0000
@@ -20,10 +20,11 @@
 #include <stdlib.h>
 #include <sys/time.h>
 #include <alloca.h>
+#define ALSA_PCM_NEW_HW_PARAMS_API
+#define ALSA_PCM_NEW_SW_PARAMS_API
+#include <alsa/asoundlib.h>
 
 #include "config.h"
-
-#include <alsa/asoundlib.h>
 #include "audio_in.h"
 #include "mp_msg.h"
 #include "help_mp.h"