40 #include <alsa/asoundlib.h>
57 res =
ff_alsa_open(s1, SND_PCM_STREAM_PLAYBACK, &sample_rate,
61 "sample rate %d not available, nearest is %d\n",
89 while ((res = snd_pcm_writei(s->
h, buf, size)) < 0) {
108 int64_t *dts, int64_t *wall)
111 snd_pcm_sframes_t delay = 0;
113 snd_pcm_delay(s->
h, &delay);