diff options
Diffstat (limited to 'src/sample.cc')
-rw-r--r-- | src/sample.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sample.cc b/src/sample.cc index 4d0443d..9af2c08 100644 --- a/src/sample.cc +++ b/src/sample.cc @@ -28,9 +28,10 @@ #include <sndfile.h> -Sample::Sample(const std::string& name, double power) +Sample::Sample(const std::string& name, double power, bool normalized) : name{name} , power{power} + , normalized(normalized) , audiofiles{} { } @@ -67,3 +68,8 @@ double Sample::getPower() const { return power; } + +bool Sample::getNormalized() const +{ + return normalized; +} |