commit 7fb9e5af6c53196c8f3b281cdf1b0c5e9fa52dbe
parent 829c2451724361aea5aee16eea6c4dade71b0c08
Author: sin <sin@2f30.org>
Date: Fri, 3 Jun 2016 14:46:49 +0100
Unbreak playing loop
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ncmixer.c b/ncmixer.c
@@ -400,13 +400,13 @@ loop(void)
out->sio_hdl = audio_open(out->name);
if (out->sio_hdl == NULL)
continue;
- memset(out->buf, 0, sizeof(out->buf));
- out->nsamples = mix(out->buf);
- ret = audio_play(out->sio_hdl, out->buf,
- out->nsamples * 2);
- if (ret == -1)
- audio_close(&out->sio_hdl);
}
+ memset(out->buf, 0, sizeof(out->buf));
+ out->nsamples = mix(out->buf);
+ ret = audio_play(out->sio_hdl, out->buf,
+ out->nsamples * 2);
+ if (ret == -1)
+ audio_close(&out->sio_hdl);
}
draw();