summaryrefslogtreecommitdiff
path: root/src/instrument.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-03-20 20:06:03 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-03-23 20:17:53 +0100
commita6c134a82143acd32f80b2f9679f8fcf194a5402 (patch)
treeda8da776f2a5ea8533641a886ee7c963c016f95b /src/instrument.cc
parent7860651ee543385bb6d1c229312b20e78150f118 (diff)
Add file counter methods to DrumKit and Instrument classes.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r--src/instrument.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/instrument.cc b/src/instrument.cc
index 5c96c6d..466acc1 100644
--- a/src/instrument.cc
+++ b/src/instrument.cc
@@ -117,3 +117,10 @@ void Instrument::setGroup(const std::string& g)
{
_group = g;
}
+
+std::size_t Instrument::getNumberOfFiles() const
+{
+ // Note: Each AudioFile instance contains just a single channel even for
+ // multi-channel files.
+ return audiofiles.size();
+}