From 17c4551a0a02df27cb907678a0509c1a63f6256c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 5 May 2017 23:54:29 +0200 Subject: Introduce the new resampling frame. --- src/drumkitloader.cc | 2 +- src/settings.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc index eed5a33..a1a5bdf 100644 --- a/src/drumkitloader.cc +++ b/src/drumkitloader.cc @@ -136,7 +136,7 @@ bool DrumKitLoader::loadkit(const std::string& file) #ifdef WITH_RESAMPLER resamplers.setup(kit.getSamplerate(), settings.samplerate.load()); #endif/*WITH_RESAMPLER*/ - settings.resampling_active.store(resamplers.isActive()); + settings.resamplig_recommended.store(resamplers.isActive()); DEBUG(loadkit, "loadkit: Success\n"); diff --git a/src/settings.h b/src/settings.h index 76662c2..6d094ea 100644 --- a/src/settings.h +++ b/src/settings.h @@ -81,7 +81,7 @@ struct Settings Atomic buffer_size{1024}; // Only used to show in the UI. Atomic enable_resampling{true}; - Atomic resampling_active{false}; + Atomic resamplig_recommended{false}; Atomic number_of_files{0}; Atomic number_of_files_loaded{0}; @@ -118,7 +118,7 @@ struct SettingsGetter SettingRef buffer_size; SettingRef enable_resampling; - SettingRef resampling_active; + SettingRef resamplig_recommended; SettingRef number_of_files; SettingRef number_of_files_loaded; @@ -146,7 +146,7 @@ struct SettingsGetter , samplerate{settings.samplerate} , buffer_size(settings.buffer_size) , enable_resampling{settings.enable_resampling} - , resampling_active{settings.resampling_active} + , resamplig_recommended{settings.resamplig_recommended} , number_of_files{settings.number_of_files} , number_of_files_loaded{settings.number_of_files_loaded} , current_file{settings.current_file} @@ -185,7 +185,7 @@ public: Notifier buffer_size; Notifier enable_resampling; - Notifier resampling_active; + Notifier resamplig_recommended; Notifier number_of_files; Notifier number_of_files_loaded; @@ -222,7 +222,7 @@ public: EVAL(buffer_size); EVAL(enable_resampling); - EVAL(resampling_active); + EVAL(resamplig_recommended); EVAL(number_of_files); EVAL(number_of_files_loaded); -- cgit v1.2.3