File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,20 @@ struct Message
54
54
memset (sysexArray, 0 , sSysExMaxSize * sizeof (DataByte));
55
55
}
56
56
57
+ inline Message (const Message& inOther)
58
+ : channel(inOther.channel)
59
+ , type(inOther.type)
60
+ , data1(inOther.data1)
61
+ , data2(inOther.data2)
62
+ , valid(inOther.valid)
63
+ , length(inOther.length)
64
+ {
65
+ if (type == midi::SystemExclusive)
66
+ {
67
+ memcpy (sysexArray, inOther.sysexArray , sSysExMaxSize * sizeof (DataByte));
68
+ }
69
+ }
70
+
57
71
/* ! The maximum size for the System Exclusive array.
58
72
*/
59
73
static const unsigned sSysExMaxSize = SysExMaxSize;
@@ -94,7 +108,7 @@ struct Message
94
108
/* ! Total Length of the message.
95
109
*/
96
110
unsigned length;
97
-
111
+
98
112
inline unsigned getSysExSize () const
99
113
{
100
114
const unsigned size = unsigned (data2) << 8 | data1;
You can’t perform that action at this time.
0 commit comments