summaryrefslogtreecommitdiff
path: root/src/sample.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sample.cc')
-rw-r--r--src/sample.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sample.cc b/src/sample.cc
index 9d28a17..1f624d3 100644
--- a/src/sample.cc
+++ b/src/sample.cc
@@ -39,12 +39,12 @@ Sample::~Sample()
{
}
-void Sample::addAudioFile(Channel* c, AudioFile* a)
+void Sample::addAudioFile(InstrumentChannel* c, AudioFile* a)
{
audiofiles[c] = a;
}
-AudioFile* Sample::getAudioFile(Channel* c)
+AudioFile* Sample::getAudioFile(const Channel& channel)
{
/*
if(audiofiles.find(c) == audiofiles.end()) return nullptr;
@@ -54,7 +54,7 @@ AudioFile* Sample::getAudioFile(Channel* c)
// todo: std::find_if ??
for (auto& pair: audiofiles)
{
- if (pair.first->num == c->num)
+ if (pair.first->num == channel.num)
{
return pair.second;
}