mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
ALSA: set start threshold to zero
This commit is contained in:
parent
11f68a02cd
commit
8fa0049d28
1 changed files with 6 additions and 0 deletions
|
|
@ -820,6 +820,12 @@ int Alsa_pcmi::set_swpar (snd_pcm_t *handle, snd_pcm_sw_params_t *swpar, const c
|
|||
sname, _fsize);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (handle == _play_handle && snd_pcm_sw_params_set_start_threshold (_play_handle, _play_swpar, 0U) < 0) {
|
||||
if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s start-threshold.\n", sname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((err = snd_pcm_sw_params (handle, swpar)) < 0)
|
||||
{
|
||||
if (_debug & DEBUG_INIT) fprintf (stderr, "Alsa_pcmi: can't set %s software parameters.\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue