typos in comments and strings

This commit is contained in:
Alexandre Ratchov 2015-08-26 10:27:22 +02:00
parent 366e464abc
commit 9ff8e621d0
2 changed files with 9 additions and 10 deletions

View File

@ -71,7 +71,7 @@
#define DEFAULT_BUFSZ_MS 200
struct slot {
struct slot *next; /* next on the play list */
struct slot *next; /* next on the play/rec list */
int vol; /* dynamic range */
int volctl; /* volume in the 0..127 range */
struct abuf buf; /* file i/o buffer */
@ -91,7 +91,7 @@ struct slot {
#define SLOT_RUN 2 /* playing/recording */
#define SLOT_STOP 3 /* draining (play only) */
int pstate; /* one of above */
struct afile afile; /* file desc & friends */
struct afile afile; /* file desc & friends */
};
/*
@ -860,7 +860,7 @@ dev_imsg(unsigned char *msg, unsigned int len)
}
/*
* parse then given data chunk, and calling imsg() for each message
* parse the given data chunk and call imsg() for each message
*/
static void
midi_in(unsigned char *idata, int icount)
@ -871,7 +871,7 @@ midi_in(unsigned char *idata, int icount)
for (i = 0; i < icount; i++) {
c = *idata++;
if (c >= 0xf8) {
/* we don't use reat-time events */
/* we don't use real-time events */
} else if (c == SYSEX_END) {
if (dev_mst == SYSEX_START) {
dev_msg[dev_midx++] = c;
@ -1357,7 +1357,7 @@ main(int argc, char **argv)
if (dev == NULL)
dev = SIO_DEVANY;
if (mode == 0) {
log_puts("at least of -i and -o required\n");
log_puts("at least -i or -o required\n");
return 1;
}
if (!playrec(dev, mode, bufsz, port))

View File

@ -726,11 +726,10 @@ sio_alsa_setpar(struct sio_hdl *sh, struct sio_par *par)
unsigned irate, orate;
int err;
/* XXX: alloca */
snd_pcm_hw_params_malloc(&ohwp);
snd_pcm_sw_params_malloc(&oswp);
snd_pcm_hw_params_malloc(&ihwp);
snd_pcm_sw_params_malloc(&iswp);
snd_pcm_hw_params_alloca(&ohwp);
snd_pcm_sw_params_alloca(&oswp);
snd_pcm_hw_params_alloca(&ihwp);
snd_pcm_sw_params_alloca(&iswp);
sio_alsa_enctofmt(hdl, &ifmt, par->bits, par->sig, par->le);
irate = (par->rate == ~0U) ? 48000 : par->rate;