diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-28 12:15:15 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-28 12:15:15 +0100 |
commit | 255e757419aed5bce8254b3fbf28f0f8da3eeba6 (patch) | |
tree | ec17fee4d570b92746571b9c0d759bb1141e4285 /src/audioinputenginemidi.h | |
parent | bf7cb30a61bbb59790dd7a3dfa81945f9f1b0e61 (diff) |
Linter fixes for audioinputenginemidi.cc
Diffstat (limited to 'src/audioinputenginemidi.h')
-rw-r--r-- | src/audioinputenginemidi.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/audioinputenginemidi.h b/src/audioinputenginemidi.h index 8da7bd2..386a055 100644 --- a/src/audioinputenginemidi.h +++ b/src/audioinputenginemidi.h @@ -37,7 +37,7 @@ class AudioInputEngineMidi : public AudioInputEngine { public: - AudioInputEngineMidi(); + AudioInputEngineMidi() = default; virtual ~AudioInputEngineMidi() = default; virtual bool init(const Instruments &instruments) = 0; @@ -51,14 +51,15 @@ public: virtual void run(size_t pos, size_t len, std::vector<event_t>& events) = 0; virtual void post() = 0; - virtual bool loadMidiMap(const std::string& file, const Instruments& i); + virtual bool loadMidiMap(const std::string& midimap_file, + const Instruments& i); std::string getMidimapFile() const; bool isValid() const; - void processNote(const std::uint8_t* note_data, - std::size_t note_data_size, + void processNote(const std::uint8_t* midi_buffer, + std::size_t midi_buffer_length, std::size_t offset, std::vector<event_t>& events); @@ -67,7 +68,7 @@ protected: private: std::string midimap; - bool is_valid; + bool is_valid{false}; - ConfigFile refs; + ConfigFile refs{REFSFILE}; }; |