summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc10
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];