mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: don't write more than wat is requested
This commit is contained in:
parent
23fd40df94
commit
d2aee61880
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ snd_pcm_pipewire_process(snd_pcm_pipewire_t *pw, struct pw_buffer *b,
|
||||||
nframes = d[0].chunk->size / pw->stride;
|
nframes = d[0].chunk->size / pw->stride;
|
||||||
}
|
}
|
||||||
want = SPA_MIN(nframes, want);
|
want = SPA_MIN(nframes, want);
|
||||||
nframes = SPA_MIN(nframes, *hw_avail);
|
nframes = SPA_MIN(want, *hw_avail);
|
||||||
|
|
||||||
if (pw->blocks == 1) {
|
if (pw->blocks == 1) {
|
||||||
if (io->stream == SND_PCM_STREAM_PLAYBACK) {
|
if (io->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue