diff options
Diffstat (limited to 'src/sample.cc')
-rw-r--r-- | src/sample.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sndfile.h> -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; } |