diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-01-26 20:31:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-08-09 19:24:06 +0200 |
commit | 3329f636502bb4000c7a0da208bea42545564052 (patch) | |
tree | fc3cfd2f72d30d6a767b01cbfe064e0ca423b354 /src/sample.cc | |
parent | 380213d0a092a874182f1cf9c8d0cf828a624511 (diff) |
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/sample.cc')
-rw-r--r-- | src/sample.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sample.cc b/src/sample.cc index 9af2c08..2c59f5e 100644 --- a/src/sample.cc +++ b/src/sample.cc @@ -28,9 +28,11 @@ #include <sndfile.h> -Sample::Sample(const std::string& name, double power, bool normalized) +Sample::Sample(const std::string& name, double power, double position, + bool normalized) : name{name} , power{power} + , position{position} , normalized(normalized) , audiofiles{} { @@ -69,6 +71,11 @@ double Sample::getPower() const return power; } +double Sample::getPosition() const +{ + return position; +} + bool Sample::getNormalized() const { return normalized; |