From 2aae9799e1d96d827ad156aeafa549deabd51e5d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 27 Jan 2019 17:02:40 +0100 Subject: Re-instate instrument v1.0 support. --- src/sample.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sample.cc') diff --git a/src/sample.cc b/src/sample.cc index c1795e8..4d0443d 100644 --- a/src/sample.cc +++ b/src/sample.cc @@ -28,7 +28,7 @@ #include -Sample::Sample(const std::string& name, float power) +Sample::Sample(const std::string& name, double power) : name{name} , power{power} , audiofiles{} @@ -44,7 +44,7 @@ void Sample::addAudioFile(InstrumentChannel* c, AudioFile* a) audiofiles[c] = a; } -AudioFile* Sample::getAudioFile(const Channel& channel) +AudioFile* Sample::getAudioFile(const Channel& channel) const { /* if(audiofiles.find(c) == audiofiles.end()) return nullptr; @@ -63,7 +63,7 @@ AudioFile* Sample::getAudioFile(const Channel& channel) return nullptr; } -float Sample::getPower() const +double Sample::getPower() const { return power; } -- cgit v1.2.3