summaryrefslogtreecommitdiff
path: root/lib/libsndio/sio_open.3
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-04-11 06:05:44 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-04-11 06:05:44 +0000
commit61de1370078d8018aa3697f8700e90150a0e97f0 (patch)
tree37edec6d5e4b8f39c1c9b8174acebb1e2c8b54ae /lib/libsndio/sio_open.3
parentcc808ad5eaeb6f21df2ea9a638191d88edf05078 (diff)
Use "unsigned int" rather than "unsigned". No object change.
suggested by deraadt@
Diffstat (limited to 'lib/libsndio/sio_open.3')
-rw-r--r--lib/libsndio/sio_open.360
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/libsndio/sio_open.3 b/lib/libsndio/sio_open.3
index a710bea2a7d..110af9a8427 100644
--- a/lib/libsndio/sio_open.3
+++ b/lib/libsndio/sio_open.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sio_open.3,v 1.31 2011/12/24 08:46:48 jmc Exp $
+.\" $OpenBSD: sio_open.3,v 1.32 2012/04/11 06:05:43 ratchov Exp $
.\"
.\" Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 24 2011 $
+.Dd $Mdocdate: April 11 2012 $
.Dt SIO_OPEN 3
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.Fd #include <sndio.h>
.Ft "struct sio_hdl *"
-.Fn "sio_open" "const char *name" "unsigned mode" "int nbio_flag"
+.Fn "sio_open" "const char *name" "unsigned int mode" "int nbio_flag"
.Ft "void"
.Fn "sio_close" "struct sio_hdl *hdl"
.Ft "int"
@@ -67,9 +67,9 @@
.Ft "int"
.Fn "sio_eof" "struct sio_hdl *hdl"
.Ft "int"
-.Fn "sio_setvol" "struct sio_hdl *hdl" "unsigned vol"
+.Fn "sio_setvol" "struct sio_hdl *hdl" "unsigned int vol"
.Ft "int"
-.Fn "sio_onvol" "struct sio_hdl *hdl" "void (*cb)(void *arg, unsigned vol)" "void *arg"
+.Fn "sio_onvol" "struct sio_hdl *hdl" "void (*cb)(void *arg, unsigned int vol)" "void *arg"
.Ft "void"
.Fn "sio_initpar" "struct sio_par *par"
.\"Fd #define SIO_BPS(bits)
@@ -155,21 +155,21 @@ The set of parameters of the stream that can be controlled
is given by the following structure:
.Bd -literal
struct sio_par {
- unsigned bits; /* bits per sample */
- unsigned bps; /* bytes per sample */
- unsigned sig; /* 1 = signed, 0 = unsigned */
- unsigned le; /* 1 = LE, 0 = BE byte order */
- unsigned msb; /* 1 = MSB, 0 = LSB aligned */
- unsigned rchan; /* number channels for recording */
- unsigned pchan; /* number channels for playback */
- unsigned rate; /* frames per second */
- unsigned appbufsz; /* minimum buffer size without xruns */
- unsigned bufsz; /* end-to-end buffer size (read-only) */
- unsigned round; /* optimal buffer size divisor */
+ unsigned int bits; /* bits per sample */
+ unsigned int bps; /* bytes per sample */
+ unsigned int sig; /* 1 = signed, 0 = unsigned int */
+ unsigned int le; /* 1 = LE, 0 = BE byte order */
+ unsigned int msb; /* 1 = MSB, 0 = LSB aligned */
+ unsigned int rchan; /* number channels for recording */
+ unsigned int pchan; /* number channels for playback */
+ unsigned int rate; /* frames per second */
+ unsigned int appbufsz; /* minimum buffer size without xruns */
+ unsigned int bufsz; /* end-to-end buffer size (read-only) */
+ unsigned int round; /* optimal buffer size divisor */
#define SIO_IGNORE 0 /* pause during xrun */
#define SIO_SYNC 1 /* resync after xrun */
#define SIO_ERROR 2 /* terminate on xrun */
- unsigned xrun; /* what to do on overrun/underrun */
+ unsigned int xrun; /* what to do on overrun/underrun */
};
.Ed
.Pp
@@ -316,21 +316,21 @@ usable together.
.Bd -literal
struct sio_cap {
struct sio_enc { /* allowed encodings */
- unsigned bits;
- unsigned bps;
- unsigned sig;
- unsigned le;
- unsigned msb;
+ unsigned int bits;
+ unsigned int bps;
+ unsigned int sig;
+ unsigned int le;
+ unsigned int msb;
} enc[SIO_NENC];
- unsigned rchan[SIO_NCHAN]; /* allowed rchans */
- unsigned pchan[SIO_NCHAN]; /* allowed pchans */
- unsigned rate[SIO_NRATE]; /* allowed rates */
- unsigned nconf; /* num. of confs[] */
+ unsigned int rchan[SIO_NCHAN]; /* allowed rchans */
+ unsigned int pchan[SIO_NCHAN]; /* allowed pchans */
+ unsigned int rate[SIO_NRATE]; /* allowed rates */
+ unsigned int nconf; /* num. of confs[] */
struct sio_conf {
- unsigned enc; /* bitmask of enc[] indexes */
- unsigned rchan; /* bitmask of rchan[] indexes */
- unsigned pchan; /* bitmask of pchan[] indexes */
- unsigned rate; /* bitmask of rate[] indexes */
+ unsigned int enc; /* bitmask of enc[] indexes */
+ unsigned int rchan; /* bitmask of rchan[] indexes */
+ unsigned int pchan; /* bitmask of pchan[] indexes */
+ unsigned int rate; /* bitmask of rate[] indexes */
} confs[SIO_NCONF];
};
.Ed