diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-10 17:31:35 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-14 22:04:13 +0200 |
commit | 05270cd4abe1cc61fb680b801676436f10069413 (patch) | |
tree | 7bf77d0753c8a9822c2a7ff06016c8f73cddb186 /src/sample.cc | |
parent | 1f7d744819968aec3c82035f730558cb73e0bd18 (diff) |
Added 'normalized' attribute to sample tag.
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; +} |