diff options
author | André Nusser <anusser@mpi-inf.mpg.de> | 2021-02-13 11:42:11 +0100 |
---|---|---|
committer | André Nusser <anusser@mpi-inf.mpg.de> | 2021-02-13 11:42:11 +0100 |
commit | f520e84d8be8018556a93fcf4a894403be829423 (patch) | |
tree | a965e46384aa114f122a412731039cec27180dc1 /src/instrument.cc | |
parent | a90ae034154b10bb81c74940504a1edca541db7a (diff) |
Initial compiling version of sample selection with position.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r-- | src/instrument.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index b7bcdd9..ac6aa28 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -54,12 +54,13 @@ bool Instrument::isValid() const return this == magic; } -const Sample* Instrument::sample(level_t level, size_t pos) +// FIXME: very bad variable naming of parameters +const Sample* Instrument::sample(level_t level, float position , std::size_t pos) { if(version >= VersionStr("2.0")) { // Version 2.0 - return sample_selection.get(level * mod, pos); + return sample_selection.get(level * mod, position, pos); } else { |