Add Start Threshold parameter (ALSA)

This commit is contained in:
Nekotekina 2018-01-03 00:44:59 +03:00
parent ee009ec99c
commit 7050575fdb
2 changed files with 3 additions and 0 deletions

View file

@ -82,6 +82,8 @@ ALSAThread::ALSAThread()
if (!check(snd_pcm_sw_params_current(s_tls_handle, s_tls_sw_params), "snd_pcm_sw_params_current"))
return;
period_frames *= g_cfg.audio.startt;
if (!check(snd_pcm_sw_params_set_start_threshold(s_tls_handle, s_tls_sw_params, period_frames), "snd_pcm_sw_params_set_start_threshold"))
return;

View file

@ -378,6 +378,7 @@ struct cfg_root : cfg::node
cfg::_bool convert_to_u16{this, "Convert to 16 bit"};
cfg::_bool downmix_to_2ch{this, "Downmix to Stereo", true};
cfg::_int<2, 128> frames{this, "Buffer Count", 32};
cfg::_int<1, 128> startt{this, "Start Threshold", 1};
} audio{this};