*/
/**
- * @file alsa-audio.h
+ * @file libavdevice/alsa-audio.h
* ALSA input and output: definitions and structures
* @author Luca Abeni ( lucabe72 email it )
* @author Benoit Fouet ( benoit fouet free fr )
#ifndef AVDEVICE_ALSA_AUDIO_H
#define AVDEVICE_ALSA_AUDIO_H
+#include <alsa/asoundlib.h>
+#include "config.h"
+#include "libavformat/avformat.h"
+
/* XXX: we make the assumption that the soundcard accepts this format */
/* XXX: find better solution with "preinit" method, needed also in
other formats */
*
* @return 0 if OK, AVERROR_xxx on error
*/
-int ff_alsa_open(AVFormatContext *s, int mode, unsigned int *sample_rate,
- int channels, int *codec_id);
+int ff_alsa_open(AVFormatContext *s, snd_pcm_stream_t mode,
+ unsigned int *sample_rate,
+ int channels, enum CodecID *codec_id);
/**
* Closes the ALSA PCM.