diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-01-26 20:31:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-02-05 12:34:49 +0100 |
commit | 47833d52f6e9f8d3d68d0b22ca8fd31dde09e4b1 (patch) | |
tree | 829c77c301e257174e5591a27e0870c05e89edec /src/sample.h | |
parent | 235ad6fbbce2e0ae9e06db960a5ba3b099936ace (diff) |
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/sample.h')
-rw-r--r-- | src/sample.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sample.h b/src/sample.h index 6c31b6b..b13f624 100644 --- a/src/sample.h +++ b/src/sample.h @@ -37,12 +37,14 @@ using AudioFiles = std::map<const InstrumentChannel*, AudioFile*>; class Sample { public: - Sample(const std::string& name, double power, bool normalized = false); + Sample(const std::string& name, double power, double position, + bool normalized = false); ~Sample(); AudioFile* getAudioFile(const Channel& channel) const; double getPower() const; + double getPosition() const; bool getNormalized() const; private: @@ -55,6 +57,7 @@ private: std::string name; double power; + double position{0.0}; bool normalized; AudioFiles audiofiles; }; |