summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-01-26 20:31:31 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-07-22 11:21:48 +0200
commita095aef4f9d2fe0584eeadca85039dbc838355ed (patch)
tree976dff233adbb073e2383593825a024d7b956a7b /src/sample.h
parent019d478818950f7880d2c0f80d8fc8f963e9736b (diff)
Add positional information to drumkit xml and sample class.
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h5
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;
};