mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +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"))
|
||||
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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue