diff options
author | Volker Fischer <corrados@users.noreply.github.com> | 2021-04-30 17:07:36 +0200 |
---|---|---|
committer | Volker Fischer <corrados@users.noreply.github.com> | 2021-04-30 17:07:36 +0200 |
commit | 5be222dee61dc8b28a429d93c39a2500a28de759 (patch) | |
tree | 5ba775dbb76aadbb117c7673ebed3f28fb9bda9c /src/sample.cc | |
parent | d605a7a9166dce74aa17d33da92e11ca9b467e55 (diff) | |
parent | a15a662bcf6de70cb379bfc582c349f7ff87ee27 (diff) |
Merge branch 'distance' into edrumulus
Diffstat (limited to 'src/sample.cc')
-rw-r--r-- | src/sample.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sample.cc b/src/sample.cc index 9af2c08..2c59f5e 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 position, + bool normalized) : name{name} , power{power} + , position{position} , normalized(normalized) , audiofiles{} { @@ -69,6 +71,11 @@ double Sample::getPower() const return power; } +double Sample::getPosition() const +{ + return position; +} + bool Sample::getNormalized() const { return normalized; |