]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/alsa-audio.h
Fix unaligned accesses by doing bytewise access until aligned, then
[ffmpeg] / libavdevice / alsa-audio.h
index 91c95602906b2ea17faabef4dcdfdaec2f815416..e49e2ebded22cd15b80a2c21e6a730ccf1e4b31a 100644 (file)
 #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 */
@@ -59,8 +63,9 @@ typedef struct {
  *
  * @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.