* of the writer node group.
*/
unsigned sample_rate;
-
snd_pcm_format_t sample_format;
/**
* The number of channels, given by command line option or the
underrun = 50;
underrun -= 50;
ms2tv(underrun, &tv);
- if (tv_diff(&s->timeout, &tv, NULL) > 0)
- s->timeout = tv;
+ sched_request_timeout(&tv, s);
}
static void alsa_close(struct writer_node *wn)
if (ret < 0)
goto err;
wn->min_iqs = pad->bytes_per_frame;
+ goto again;
}
frames = bytes / pad->bytes_per_frame;
frames = snd_pcm_writei(pad->handle, data, frames);