summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index e07b7a1..d6dc028 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -426,6 +426,10 @@ void DrumGizmo::setSamplerate(int samplerate)
{
DEBUG(dgeditor, "%s samplerate: %d\n", __PRETTY_FUNCTION__, samplerate);
settings.samplerate.store(samplerate);
+
+ // Notify input engine of the samplerate change.
+ ie.setSampleRate(samplerate);
+
#ifdef WITH_RESAMPLER
resamplers.setup(kit.getSamplerate(), settings.samplerate.load());