diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-09-20 22:23:23 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-09-20 22:23:23 +0200 |
commit | 73f1a400608d93742e57c7ea3c4433eb1a2e1852 (patch) | |
tree | eb6b500127e095e5bad124927054dc73f44814dc /src/drumgizmo.cc | |
parent | 3d0ed93889afb5ae739d2998e33178689c2de965 (diff) |
New resample feature (greatly inspired by Cédric 'SxDx') based on libsamplerate.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r-- | src/drumgizmo.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 4732c27..b99687d 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -406,6 +406,16 @@ void DrumGizmo::stop() // engine.stop(); } +int DrumGizmo::samplerate() +{ + return Conf::samplerate; +} + +void DrumGizmo::setSamplerate(int samplerate) +{ + Conf::samplerate = samplerate; +} + std::string float2str(float a) { char buf[256]; |