Mercurial > repos > blastem
diff config.c @ 1555:6ce36c3f250b
More audio refactoring in preparation for allowing proper sync to video with dynamic audio rate control
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 30 Mar 2018 00:37:08 -0700 |
parents | 650178d81d33 |
children | 24508cb54f87 |
line wrap: on
line diff
--- a/config.c Thu Mar 29 00:40:41 2018 -0700 +++ b/config.c Fri Mar 30 00:37:08 2018 -0700 @@ -276,3 +276,10 @@ *num_exts_out = num_exts; return ext_list; } + +#define DEFAULT_LOWPASS_CUTOFF 3390 +uint32_t get_lowpass_cutoff(tern_node *config) +{ + char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0", TVAL_PTR).ptrval; + return lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : DEFAULT_LOWPASS_CUTOFF; +}