summaryrefslogtreecommitdiff
path: root/src/sample.cc
diff options
context:
space:
mode:
authorSander Vocke <sandervocke@gmail.com>2024-07-28 09:24:01 +0200
committerSander Vocke <sandervocke@gmail.com>2024-07-28 09:24:01 +0200
commitfaaaf5d328429fd2c3f38131f7a874d056761f3f (patch)
treec49575d96ac820addefcf184ec7ad4f0151bc716 /src/sample.cc
parentf6660bc51fe8c02ff7c3b6188e8437c67712bddf (diff)
Openness development
Diffstat (limited to 'src/sample.cc')
-rw-r--r--src/sample.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sample.cc b/src/sample.cc
index 9af2c08..63a16d9 100644
--- a/src/sample.cc
+++ b/src/sample.cc
@@ -28,9 +28,11 @@
#include <sndfile.h>
-Sample::Sample(const std::string& name, double power, bool normalized)
+Sample::Sample(const std::string& name, double power,
+ double openness, bool normalized)
: name{name}
, power{power}
+ , openness{openness}
, normalized(normalized)
, audiofiles{}
{
@@ -69,6 +71,11 @@ double Sample::getPower() const
return power;
}
+double Sample::getOpenness() const
+{
+ return openness;
+}
+
bool Sample::getNormalized() const
{
return normalized;