From 9a0abf4a45c516b15d74ab41f8dab8348d6b00c9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 15 Jun 2016 07:53:25 +0200 Subject: Make sure we abide the samplerate in all input/output engines. --- src/drumgizmo.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/drumgizmo.cc') 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()); -- cgit v1.2.3