summaryrefslogtreecommitdiff
path: root/src/drumkit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/drumkit.cc')
-rw-r--r--src/drumkit.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/drumkit.cc b/src/drumkit.cc
index 1dadf04..abef1b8 100644
--- a/src/drumkit.cc
+++ b/src/drumkit.cc
@@ -68,7 +68,19 @@ std::string DrumKit::getDescription() const
return _description;
}
-size_t DrumKit::getSamplerate() const
+std::size_t DrumKit::getSamplerate() const
{
return _samplerate;
}
+
+std::size_t DrumKit::getNumberOfFiles() const
+{
+ std::size_t number_of_files = 0;
+
+ for(const auto & instrument : instruments)
+ {
+ number_of_files += instrument->getNumberOfFiles();
+ }
+
+ return number_of_files;
+}