diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2013-09-28 18:01:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-03 23:14:03 +0200 |
commit | 32894736780ea63e5fea456de27650fc27ec57c6 (patch) | |
tree | a72fe21baacc223136b313c66717069172400722 /stream/audio_in.h | |
parent | bdc56771eb8fa06f47599d90370017a6791e631b (diff) | |
download | mpv-32894736780ea63e5fea456de27650fc27ec57c6.tar.bz2 mpv-32894736780ea63e5fea456de27650fc27ec57c6.tar.xz |
audio/out: add sndio support
Based on an earlier patch for mplayer by Alexandre Ratchov <alex@caoua.org>
Diffstat (limited to 'stream/audio_in.h')
-rw-r--r-- | stream/audio_in.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/stream/audio_in.h b/stream/audio_in.h index 31688e7192..2f42685c7c 100644 --- a/stream/audio_in.h +++ b/stream/audio_in.h @@ -21,6 +21,7 @@ #define AUDIO_IN_ALSA 1 #define AUDIO_IN_OSS 2 +#define AUDIO_IN_SNDIO 3 #include "config.h" @@ -45,6 +46,16 @@ typedef struct { } ai_oss_t; #endif +#ifdef CONFIG_SNDIO +#include <sndio.h> + +typedef struct { + char *device; + + struct sio_hdl *hdl; +} ai_sndio_t; +#endif + typedef struct { int type; @@ -67,6 +78,9 @@ typedef struct #ifdef CONFIG_OSS_AUDIO ai_oss_t oss; #endif +#ifdef CONFIG_SNDIO + ai_sndio_t sndio; +#endif } audio_in_t; int audio_in_init(audio_in_t *ai, int type); @@ -90,4 +104,9 @@ int ai_oss_set_channels(audio_in_t *ai); int ai_oss_init(audio_in_t *ai); #endif +#ifdef CONFIG_SNDIO +int ai_sndio_setup(audio_in_t *ai); +int ai_sndio_init(audio_in_t *ai); +#endif + #endif /* MPLAYER_AUDIO_IN_H */ |