From a6c134a82143acd32f80b2f9679f8fcf194a5402 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 20 Mar 2017 20:06:03 +0100 Subject: Add file counter methods to DrumKit and Instrument classes. --- src/drumkit.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/drumkit.h') diff --git a/src/drumkit.h b/src/drumkit.h index e3ae783..f646b22 100644 --- a/src/drumkit.h +++ b/src/drumkit.h @@ -52,7 +52,10 @@ public: bool isValid() const; - size_t getSamplerate() const; + std::size_t getSamplerate() const; + + //! Get the number of audio files (as in single channel) in this drumkit. + std::size_t getNumberOfFiles() const; private: void* magic{nullptr}; @@ -61,7 +64,7 @@ private: std::string _name; std::string _description; - size_t _samplerate{0}; + std::size_t _samplerate{0}; VersionStr _version; }; -- cgit v1.2.3