alsa-plugin: don't rate match for capture streams

For capture streams we can simple copy the complete pipewire buffer into
the alsa pcm ringbuffer to make it available for the application.
This commit is contained in:
Wim Taymans 2021-11-24 12:18:28 +01:00
parent 33f087d4db
commit d8e24fca1c

View file

@ -368,7 +368,8 @@ static void on_stream_io_changed(void *data, uint32_t id, void *area, uint32_t s
snd_pcm_pipewire_t *pw = data;
switch (id) {
case SPA_IO_RateMatch:
pw->rate_match = area;
if (pw->io.stream == SND_PCM_STREAM_PLAYBACK)
pw->rate_match = area;
break;
default:
break;