mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-09 08:35:03 -06:00
Add Start Threshold parameter (ALSA)
This commit is contained in:
parent
ee009ec99c
commit
7050575fdb
@ -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"))
|
if (!check(snd_pcm_sw_params_current(s_tls_handle, s_tls_sw_params), "snd_pcm_sw_params_current"))
|
||||||
return;
|
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"))
|
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;
|
return;
|
||||||
|
|
||||||
|
|||||||
@ -378,6 +378,7 @@ struct cfg_root : cfg::node
|
|||||||
cfg::_bool convert_to_u16{this, "Convert to 16 bit"};
|
cfg::_bool convert_to_u16{this, "Convert to 16 bit"};
|
||||||
cfg::_bool downmix_to_2ch{this, "Downmix to Stereo", true};
|
cfg::_bool downmix_to_2ch{this, "Downmix to Stereo", true};
|
||||||
cfg::_int<2, 128> frames{this, "Buffer Count", 32};
|
cfg::_int<2, 128> frames{this, "Buffer Count", 32};
|
||||||
|
cfg::_int<1, 128> startt{this, "Start Threshold", 1};
|
||||||
|
|
||||||
} audio{this};
|
} audio{this};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user