alsa: fill silence when nothing written

This commit is contained in:
Wim Taymans 2018-06-22 17:23:52 +02:00
parent bbd5c941d2
commit 4afda5405f

View file

@ -435,6 +435,8 @@ int spa_alsa_write(struct state *state, snd_pcm_uframes_t silence)
else
silence = 0;
}
if (written == 0)
silence = 4096;
if (silence > 0) {
snd_pcm_areas_silence(my_areas, offset, state->channels, silence, state->format);