mirror of https://github.com/ericonr/sndio.git
align comments
This commit is contained in:
parent
2bbe227870
commit
5419334f1e
|
@ -147,21 +147,21 @@ The set of parameters of the stream that can be controlled
|
||||||
is given by the following structure:
|
is given by the following structure:
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
struct sio_par {
|
struct sio_par {
|
||||||
unsigned int bits; /* bits per sample */
|
unsigned int bits; /* bits per sample */
|
||||||
unsigned int bps; /* bytes per sample */
|
unsigned int bps; /* bytes per sample */
|
||||||
unsigned int sig; /* 1 = signed, 0 = unsigned int */
|
unsigned int sig; /* 1 = signed, 0 = unsigned int */
|
||||||
unsigned int le; /* 1 = LE, 0 = BE byte order */
|
unsigned int le; /* 1 = LE, 0 = BE byte order */
|
||||||
unsigned int msb; /* 1 = MSB, 0 = LSB aligned */
|
unsigned int msb; /* 1 = MSB, 0 = LSB aligned */
|
||||||
unsigned int rchan; /* number channels for recording */
|
unsigned int rchan; /* number channels for recording */
|
||||||
unsigned int pchan; /* number channels for playback */
|
unsigned int pchan; /* number channels for playback */
|
||||||
unsigned int rate; /* frames per second */
|
unsigned int rate; /* frames per second */
|
||||||
unsigned int appbufsz; /* minimum buffer size without xruns */
|
unsigned int appbufsz; /* minimum buffer size without xruns */
|
||||||
unsigned int bufsz; /* end-to-end buffer size (read-only) */
|
unsigned int bufsz; /* end-to-end buffer size (read-only) */
|
||||||
unsigned int round; /* optimal buffer size divisor */
|
unsigned int round; /* optimal buffer size divisor */
|
||||||
#define SIO_IGNORE 0 /* pause during xrun */
|
#define SIO_IGNORE 0 /* pause during xrun */
|
||||||
#define SIO_SYNC 1 /* resync after xrun */
|
#define SIO_SYNC 1 /* resync after xrun */
|
||||||
#define SIO_ERROR 2 /* terminate on xrun */
|
#define SIO_ERROR 2 /* terminate on xrun */
|
||||||
unsigned int xrun; /* what to do on overrun/underrun */
|
unsigned int xrun; /* what to do on overrun/underrun */
|
||||||
};
|
};
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -307,7 +307,7 @@ Parameters of different configurations
|
||||||
usable together.
|
usable together.
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
struct sio_cap {
|
struct sio_cap {
|
||||||
struct sio_enc { /* allowed encodings */
|
struct sio_enc { /* allowed encodings */
|
||||||
unsigned int bits;
|
unsigned int bits;
|
||||||
unsigned int bps;
|
unsigned int bps;
|
||||||
unsigned int sig;
|
unsigned int sig;
|
||||||
|
@ -319,10 +319,10 @@ struct sio_cap {
|
||||||
unsigned int rate[SIO_NRATE]; /* allowed rates */
|
unsigned int rate[SIO_NRATE]; /* allowed rates */
|
||||||
unsigned int nconf; /* num. of confs[] */
|
unsigned int nconf; /* num. of confs[] */
|
||||||
struct sio_conf {
|
struct sio_conf {
|
||||||
unsigned int enc; /* bitmask of enc[] indexes */
|
unsigned int enc; /* bitmask of enc[] indexes */
|
||||||
unsigned int rchan; /* bitmask of rchan[] indexes */
|
unsigned int rchan; /* bitmask of rchan[] indexes */
|
||||||
unsigned int pchan; /* bitmask of pchan[] indexes */
|
unsigned int pchan; /* bitmask of pchan[] indexes */
|
||||||
unsigned int rate; /* bitmask of rate[] indexes */
|
unsigned int rate; /* bitmask of rate[] indexes */
|
||||||
} confs[SIO_NCONF];
|
} confs[SIO_NCONF];
|
||||||
};
|
};
|
||||||
.Ed
|
.Ed
|
||||||
|
|
Loading…
Reference in New Issue