mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 09:39:44 +00:00
Add Start Threshold parameter (ALSA)
This commit is contained in:
parent
ee009ec99c
commit
7050575fdb
2 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue