summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 4313f2b..63f2f20 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -177,6 +177,11 @@ onmove(void *arg, int delta)
static struct sio_hdl*
device_open(snd_pcm_t *pcm, const char *name, snd_pcm_stream_t stream, int mode)
{
+ if (stream == SND_PCM_STREAM_CAPTURE) {
+ WARNX1("capture streams are broken right now, sorry");
+ return NULL;
+ }
+
const char *sndio_name = (!name || !strcmp(name, "default") ? SIO_DEVANY : name);
struct sio_hdl *hdl;