diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-04-29 21:09:51 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-04-29 21:09:51 +0000 |
commit | e7a4c601e03ecd5f8a36b4023534f7a99e0fe8ed (patch) | |
tree | 30eea93ed45eadbaa41e8806db0849459be02da8 | |
parent | c13645f1daabbdac5dc596f72261b752d2ba906f (diff) |
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!
-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 { /* |