summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-10-10 17:31:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-10-14 22:04:13 +0200
commit05270cd4abe1cc61fb680b801676436f10069413 (patch)
tree7bf77d0753c8a9822c2a7ff06016c8f73cddb186 /src/sample.h
parent1f7d744819968aec3c82035f730558cb73e0bd18 (diff)
Added 'normalized' attribute to sample tag.
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sample.h b/src/sample.h
index 223648f..6c31b6b 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -37,12 +37,13 @@ using AudioFiles = std::map<const InstrumentChannel*, AudioFile*>;
class Sample
{
public:
- Sample(const std::string& name, double power);
+ Sample(const std::string& name, double power, bool normalized = false);
~Sample();
AudioFile* getAudioFile(const Channel& channel) const;
double getPower() const;
+ bool getNormalized() const;
private:
friend class DOMLoader;
@@ -54,5 +55,6 @@ private:
std::string name;
double power;
+ bool normalized;
AudioFiles audiofiles;
};