51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
|
$OpenBSD: patch-stream_audio_in_h,v 1.1 2009/10/11 13:36:23 edd Exp $
|
||
|
--- stream/audio_in.h.orig Tue Jul 21 14:38:27 2009
|
||
|
+++ stream/audio_in.h Tue Jul 21 15:16:02 2009
|
||
|
@@ -3,6 +3,7 @@
|
||
|
|
||
|
#define AUDIO_IN_ALSA 1
|
||
|
#define AUDIO_IN_OSS 2
|
||
|
+#define AUDIO_IN_SNDIO 3
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
@@ -27,6 +28,16 @@ typedef struct {
|
||
|
} ai_oss_t;
|
||
|
#endif
|
||
|
|
||
|
+#ifdef CONFIG_SNDIO_AUDIO
|
||
|
+#include <sndio.h>
|
||
|
+
|
||
|
+typedef struct {
|
||
|
+ char *device;
|
||
|
+
|
||
|
+ struct sio_hdl *hdl;
|
||
|
+} ai_sndio_t;
|
||
|
+#endif
|
||
|
+
|
||
|
typedef struct
|
||
|
{
|
||
|
int type;
|
||
|
@@ -49,6 +60,9 @@ typedef struct
|
||
|
#ifdef CONFIG_OSS_AUDIO
|
||
|
ai_oss_t oss;
|
||
|
#endif
|
||
|
+#ifdef CONFIG_SNDIO_AUDIO
|
||
|
+ ai_sndio_t sndio;
|
||
|
+#endif
|
||
|
} audio_in_t;
|
||
|
|
||
|
int audio_in_init(audio_in_t *ai, int type);
|
||
|
@@ -70,6 +84,11 @@ int ai_alsa_xrun(audio_in_t *ai);
|
||
|
int ai_oss_set_samplerate(audio_in_t *ai);
|
||
|
int ai_oss_set_channels(audio_in_t *ai);
|
||
|
int ai_oss_init(audio_in_t *ai);
|
||
|
+#endif
|
||
|
+
|
||
|
+#ifdef CONFIG_SNDIO_AUDIO
|
||
|
+int ai_sndio_setup(audio_in_t *ai);
|
||
|
+int ai_sndio_init(audio_in_t *ai);
|
||
|
#endif
|
||
|
|
||
|
#endif /* MPLAYER_AUDIO_IN_H */
|