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.
(cherry picked from commit 1d5b62d61a)
This commit is contained in:
Tobias Doerffel
2010-08-31 15:19:02 +02:00
parent c407bbe15b
commit 611a36e56b

View File

@@ -1,7 +1,7 @@
/*
* midi.h - constants, structs etc. concerning MIDI
*
* Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* 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;