From 1d5b62d61a6362d28eaaf563f9a83e12db8beaf2 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 31 Aug 2010 15:19:02 +0200 Subject: [PATCH] MidiEvent: added read method for type property Even if the type property of the MidiEvent class is still public, there should be a method for reading it. --- include/midi.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/midi.h b/include/midi.h index 5b994cf4b..c7f048838 100644 --- a/include/midi.h +++ b/include/midi.h @@ -1,7 +1,7 @@ /* * midi.h - constants, structs etc. concerning MIDI * - * Copyright (c) 2005-2009 Tobias Doerffel + * Copyright (c) 2005-2010 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -128,6 +128,11 @@ struct midiEvent { } + inline MidiEventTypes type() const + { + return m_type; + } + inline int channel() const { return m_channel;