diff options
author | 2010-04-29 21:09:50 +0000 | |
---|---|---|
committer | 2010-04-29 21:09:50 +0000 | |
commit | 86ac8348be027cae727e5e3a265eef40ac8fbde2 (patch) | |
tree | d34f21ba6c21a66115434b16e295e33b399c4dc5 /lib/libsndio | |
parent | regen (diff) | |
download | wireguard-openbsd-86ac8348be027cae727e5e3a265eef40ac8fbde2.tar.xz wireguard-openbsd-86ac8348be027cae727e5e3a265eef40ac8fbde2.zip |
in sun_start(), don't pause the device in play mode, since it's
already paused (by either sio_open or sio_stop)
from Alexandr Shadchin, thanks!
Diffstat (limited to 'lib/libsndio')
-rw-r--r-- | lib/libsndio/sun.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c index e3d316f2f87..6cf86db6a7d 100644 --- a/lib/libsndio/sun.c +++ b/lib/libsndio/sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sun.c,v 1.34 2010/04/25 18:51:05 ratchov Exp $ */ +/* $OpenBSD: sun.c,v 1.35 2010/04/29 21:09:50 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -461,16 +461,6 @@ sun_start(struct sio_hdl *sh) * pause the device and let sun_write() trigger the * start later, to avoid buffer underruns */ - AUDIO_INITINFO(&aui); - if (hdl->sio.mode & SIO_PLAY) - aui.play.pause = 1; - if (hdl->sio.mode & SIO_REC) - aui.record.pause = 1; - if (ioctl(hdl->fd, AUDIO_SETINFO, &aui) < 0) { - DPERROR("sun_start: setinfo2"); - hdl->sio.eof = 1; - return 0; - } hdl->filling = 1; } else { /* |