summaryrefslogtreecommitdiff
path: root/src/instrument.cc
diff options
context:
space:
mode:
authorAndré Nusser <anusser@mpi-inf.mpg.de>2021-02-13 11:42:11 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-02-19 17:16:47 +0100
commit1697a5793bb6c828fccccefce9ac2ea686f15512 (patch)
tree29926124e18363282fcb0d84d7779d3295589d69 /src/instrument.cc
parentfa0f4a2af7ef1c900e279ead72122f9d652b6959 (diff)
Initial compiling version of sample selection with position.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r--src/instrument.cc5
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
{