alsa: adjust latency based on buffer size

This commit is contained in:
Wim Taymans 2018-04-30 09:27:20 +02:00
parent d5e658e8f9
commit b8a37381da
3 changed files with 27 additions and 10 deletions

View file

@ -705,8 +705,6 @@ int spa_alsa_start(struct state *state, bool xrun_recover)
state->source.rmask = 0;
spa_loop_add_source(state->data_loop, &state->source);
state->threshold = state->props.min_latency;
if (state->stream == SND_PCM_STREAM_PLAYBACK) {
state->alsa_started = false;
} else {