mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: fill silence when nothing written
This commit is contained in:
parent
bbd5c941d2
commit
4afda5405f
1 changed files with 2 additions and 0 deletions
|
|
@ -435,6 +435,8 @@ int spa_alsa_write(struct state *state, snd_pcm_uframes_t silence)
|
||||||
else
|
else
|
||||||
silence = 0;
|
silence = 0;
|
||||||
}
|
}
|
||||||
|
if (written == 0)
|
||||||
|
silence = 4096;
|
||||||
|
|
||||||
if (silence > 0) {
|
if (silence > 0) {
|
||||||
snd_pcm_areas_silence(my_areas, offset, state->channels, silence, state->format);
|
snd_pcm_areas_silence(my_areas, offset, state->channels, silence, state->format);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue