diff --git a/src/outputs/alsa.c b/src/outputs/alsa.c index 3f9d646d..b696f0c3 100644 --- a/src/outputs/alsa.c +++ b/src/outputs/alsa.c @@ -613,7 +613,7 @@ buffer_write(struct alsa_session *as, struct output_data *odata, snd_pcm_sframes nsamp = BTOS(bufsize, as->quality.bits_per_sample, as->quality.channels); ret = snd_pcm_writei(as->hdl, buf, nsamp); if (ret < 0) - return -1; + return ret; avail -= ret; }