summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-10-14 13:54:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-10-14 13:54:00 +0200
commitd0d4b51651dd5a10f05844bbcf41f87c62567673 (patch)
tree8601497816752b6e13030cf8f2513868e95395ac /src/settings.h
parent630fb993f6820376d9ed37fcd8040d9d714655bc (diff)
Remove atomic POD tests for datatypes bigger than machine size (Thanks to James Cowgill for pointing this out).
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings.h b/src/settings.h
index 89f898c..0b73cf2 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -77,7 +77,7 @@ struct Settings
Atomic<bool> enable_velocity_randomiser{false};
Atomic<float> velocity_randomiser_weight{0.1f};
- Atomic<double> samplerate{44100.0};
+ Atomic<float> samplerate{44100.0};
Atomic<std::size_t> buffer_size{1024}; // Only used to show in the UI.
Atomic<bool> enable_resampling{true};
@@ -117,7 +117,7 @@ struct SettingsGetter
SettingRef<bool> enable_velocity_randomiser;
SettingRef<float> velocity_randomiser_weight;
- SettingRef<double> samplerate;
+ SettingRef<float> samplerate;
SettingRef<std::size_t> buffer_size;
SettingRef<bool> enable_resampling;
@@ -189,7 +189,7 @@ public:
Notifier<bool> enable_velocity_randomiser;
Notifier<float> velocity_randomiser_weight;
- Notifier<double> samplerate;
+ Notifier<float> samplerate;
Notifier<std::size_t> buffer_size;
Notifier<bool> enable_resampling;