diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-03-20 20:06:03 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-03-23 20:17:53 +0100 |
commit | a6c134a82143acd32f80b2f9679f8fcf194a5402 (patch) | |
tree | da8da776f2a5ea8533641a886ee7c963c016f95b /src/drumkit.h | |
parent | 7860651ee543385bb6d1c229312b20e78150f118 (diff) |
Add file counter methods to DrumKit and Instrument classes.
Diffstat (limited to 'src/drumkit.h')
-rw-r--r-- | src/drumkit.h | 7 |
1 files changed, 5 insertions, 2 deletions
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; }; |