diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-15 07:53:25 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-15 07:54:08 +0200 |
commit | 9a0abf4a45c516b15d74ab41f8dab8348d6b00c9 (patch) | |
tree | 1e915664db627f2dd124ee08a0cebe3d6c306b3c /src/drumgizmo.cc | |
parent | 149d86611985b7a382994ac684d555660927e8d2 (diff) |
Make sure we abide the samplerate in all input/output engines.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r-- | src/drumgizmo.cc | 4 |
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()); |