From a90e3d6958bb9923e288caf8b70ef6c06cc43ddf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 1 Apr 2017 13:54:23 +0200 Subject: Added disk_cache_chunk_size and number_of_underruns to Settings. --- src/settings.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/settings.h b/src/settings.h index 8a646a1..3f9f9ae 100644 --- a/src/settings.h +++ b/src/settings.h @@ -52,8 +52,14 @@ struct Settings //! The maximum amount of memory in bytes that the AudioCache //! is allowed to use for preloading. Default is 1GB. Atomic disk_cache_upper_limit{1024 * 1024 * 1024}; + + //! The optimal read chunk size from the disk. + Atomic disk_cache_chunk_size{1024 * 1024}; + Atomic disk_cache_enable{true}; + Atomic number_of_underruns{0}; + //! Increment this in order to invoke a reload of the current drumkit. Atomic reload_counter{0}; @@ -83,7 +89,9 @@ struct SettingsGetter SettingRef drumkit_load_status; SettingRef disk_cache_upper_limit; + SettingRef disk_cache_chunk_size; SettingRef disk_cache_enable; + SettingRef number_of_underruns; SettingRef reload_counter; SettingRef midimap_file; @@ -108,7 +116,9 @@ struct SettingsGetter : drumkit_file(settings.drumkit_file) , drumkit_load_status(settings.drumkit_load_status) , disk_cache_upper_limit(settings.disk_cache_upper_limit) + , disk_cache_chunk_size(settings.disk_cache_chunk_size) , disk_cache_enable(settings.disk_cache_enable) + , number_of_underruns(settings.number_of_underruns) , reload_counter(settings.reload_counter) , midimap_file(settings.midimap_file) , midimap_load_status(settings.midimap_load_status) @@ -134,7 +144,9 @@ public: Notifier drumkit_load_status; Notifier disk_cache_upper_limit; + Notifier disk_cache_chunk_size; Notifier disk_cache_enable; + Notifier number_of_underruns; Notifier reload_counter; Notifier midimap_file; @@ -163,7 +175,9 @@ public: EVAL(drumkit_load_status); EVAL(disk_cache_upper_limit); + EVAL(disk_cache_chunk_size); EVAL(disk_cache_enable); + EVAL(number_of_underruns); EVAL(reload_counter); EVAL(midimap_file); -- cgit v1.2.3