summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-07 15:27:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-07 15:27:39 +0200
commit061b57ab6fd530f41d75a3b52dd254edc509a96b (patch)
treeb2f237320d6486348dd8f28b31bb555fefb35961 /src/drumgizmo.h
parentba2160774af945e9ac6a46714833ab2d231b00fe (diff)
Use enable_resampling in all places where the resampler is effecting the outcome. Clear all active events when frame size changes.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index 008d189..562e2ba 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -86,6 +86,7 @@ protected:
Resamplers resamplers;
sample_t resampler_output_buffer[MAX_NUM_CHANNELS][RESAMPLER_OUTPUT_BUFFER];
sample_t resampler_input_buffer[MAX_NUM_CHANNELS][RESAMPLER_INPUT_BUFFER];
+ bool enable_resampling{true};
std::map<std::string, AudioFile *> audiofiles;
@@ -98,6 +99,7 @@ protected:
std::vector<event_t> events;
Settings& settings;
+ SettingsGetter settings_getter;
Random rand;
};