mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: always set read_size
This commit is contained in:
parent
29be757598
commit
c135f9c7ee
1 changed files with 2 additions and 3 deletions
|
|
@ -838,7 +838,8 @@ static int get_status(struct state *state, snd_pcm_uframes_t *delay, snd_pcm_ufr
|
|||
else
|
||||
*target -= state->delay;
|
||||
} else {
|
||||
state->delay = state->read_size = 0;
|
||||
state->delay = 0;
|
||||
state->read_size = state->threshold;
|
||||
}
|
||||
|
||||
if (state->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||
|
|
@ -1217,8 +1218,6 @@ int spa_alsa_read(struct state *state, snd_pcm_uframes_t silence)
|
|||
}
|
||||
|
||||
frames = state->read_size;
|
||||
if (frames == 0)
|
||||
frames = state->threshold + state->delay;
|
||||
|
||||
if (state->use_mmap) {
|
||||
to_read = state->buffer_frames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue