mirror of https://github.com/ericonr/sndio.git
fit in 80 columns
This commit is contained in:
parent
e22e6a1b26
commit
105db99d30
|
@ -296,7 +296,8 @@ resamp_do(struct resamp *p, adata_t *in, adata_t *out, int todo)
|
||||||
* initialize resampler with ibufsz/obufsz factor and "nch" channels
|
* initialize resampler with ibufsz/obufsz factor and "nch" channels
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
resamp_init(struct resamp *p, unsigned int iblksz, unsigned int oblksz, int nch)
|
resamp_init(struct resamp *p, unsigned int iblksz,
|
||||||
|
unsigned int oblksz, int nch)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
|
|
@ -105,9 +105,9 @@ typedef int adata_t;
|
||||||
struct aparams {
|
struct aparams {
|
||||||
unsigned int bps; /* bytes per sample */
|
unsigned int bps; /* bytes per sample */
|
||||||
unsigned int bits; /* actually used bits */
|
unsigned int bits; /* actually used bits */
|
||||||
unsigned int le; /* 1 if little endian, 0 if big endian */
|
unsigned int le; /* 1 if little endian, else be */
|
||||||
unsigned int sig; /* 1 if signed, 0 if unsigned */
|
unsigned int sig; /* 1 if signed, 0 if unsigned */
|
||||||
unsigned int msb; /* 1 if msb justified, 0 if lsb justified */
|
unsigned int msb; /* 1 if msb justified, else lsb */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct resamp {
|
struct resamp {
|
||||||
|
@ -124,7 +124,7 @@ struct conv {
|
||||||
int bfirst; /* bytes to skip at startup */
|
int bfirst; /* bytes to skip at startup */
|
||||||
unsigned int bps; /* bytes per sample */
|
unsigned int bps; /* bytes per sample */
|
||||||
unsigned int shift; /* shift to get 32bit MSB */
|
unsigned int shift; /* shift to get 32bit MSB */
|
||||||
unsigned int bias; /* bias of unsigned samples */
|
unsigned int bias; /* bias of unsigned samples */
|
||||||
int bnext; /* to reach the next byte */
|
int bnext; /* to reach the next byte */
|
||||||
int snext; /* to reach the next sample */
|
int snext; /* to reach the next sample */
|
||||||
int nch;
|
int nch;
|
||||||
|
|
Loading…
Reference in New Issue