summaryrefslogtreecommitdiff
path: root/src/sample.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
commit2aae9799e1d96d827ad156aeafa549deabd51e5d (patch)
tree707fb2798cd3b9304fc4af690b557efc9d98a1a8 /src/sample.h
parent053b723adf3948d18f025efed9450d837359edd9 (diff)
Re-instate instrument v1.0 support.
Diffstat (limited to 'src/sample.h')
-rw-r--r--src/sample.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sample.h b/src/sample.h
index 5e41e9e..48f94ac 100644
--- a/src/sample.h
+++ b/src/sample.h
@@ -37,12 +37,12 @@ using AudioFiles = std::map<const InstrumentChannel*, AudioFile*>;
class Sample
{
public:
- Sample(const std::string& name, float power);
+ Sample(const std::string& name, double power);
~Sample();
- AudioFile* getAudioFile(const Channel& channel);
+ AudioFile* getAudioFile(const Channel& channel) const;
- float getPower() const;
+ double getPower() const;
private:
friend class DOMLoader;
@@ -55,6 +55,6 @@ private:
AudioFile* audio_file);
std::string name;
- float power;
+ double power;
AudioFiles audiofiles;
};