Add code for getting and setting the interpolation threshold.
This commit is contained in:
@@ -152,6 +152,19 @@ void parse_general_audio_options(void) {
|
||||
config.audio_backend_buffer_desired_length = dvalue;
|
||||
}
|
||||
}
|
||||
|
||||
/* Get the minumum buffer size for fancy interpolation setting in seconds. */
|
||||
if (config_lookup_float(config.cfg, "general.audio_backend_buffer_interpolation_threshold_in_seconds",
|
||||
&dvalue)) {
|
||||
if ((dvalue < 0) || (dvalue > config.audio_backend_buffer_desired_length)) {
|
||||
die("Invalid audio_backend_buffer_interpolation_threshold_in_seconds value: \"%f\". It "
|
||||
"should be between 0 and "
|
||||
"audio_backend_buffer_desired_length_in_seconds of %.3f, default is %.3f seconds",
|
||||
dvalue, config.audio_backend_buffer_desired_length,config.audio_backend_buffer_interpolation_threshold_in_seconds);
|
||||
} else {
|
||||
config.audio_backend_buffer_interpolation_threshold_in_seconds = dvalue;
|
||||
}
|
||||
}
|
||||
|
||||
/* Get the latency offset (deprecated). */
|
||||
if (config_lookup_int(config.cfg, "general.audio_backend_latency_offset", &value)) {
|
||||
|
||||
Reference in New Issue
Block a user