Added default constructor.

This commit is contained in:
Francois Best 2016-10-04 18:55:56 -07:00
parent 6705d0ed81
commit 3822bc2e33
1 changed files with 13 additions and 0 deletions

View File

@ -39,6 +39,19 @@ BEGIN_MIDI_NAMESPACE
template<unsigned SysExMaxSize>
struct Message
{
/*! Default constructor
\n Initializes the attributes with their default values.
*/
inline Message()
: channel(0)
, type(midi::InvalidType)
, data1(0)
, data2(0)
, valid(false)
{
memset(sysexArray, 0, sSysExMaxSize * sizeof(DataByte));
}
/*! The maximum size for the System Exclusive array.
*/
static const unsigned sSysExMaxSize = SysExMaxSize;