1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MIDI: Fix naming to match JCS in SysEx7::Kind enum

This commit is contained in:
reuk 2020-12-14 11:39:04 +00:00
parent c540fa4241
commit dadac11ffd
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 9 additions and 9 deletions

View file

@ -121,25 +121,25 @@ private:
{
switch (getSysEx7Kind (packet[0]))
{
case SysEx7::Kind::Complete:
case SysEx7::Kind::complete:
startSysExMessage (time);
pushBytes (packet);
terminateSysExMessage (callback);
break;
case SysEx7::Kind::Begin:
case SysEx7::Kind::begin:
startSysExMessage (time);
pushBytes (packet);
break;
case SysEx7::Kind::Continue:
case SysEx7::Kind::continuation:
if (pendingSysExData.empty())
break;
pushBytes (packet);
break;
case SysEx7::Kind::End:
case SysEx7::Kind::end:
if (pendingSysExData.empty())
break;
@ -196,7 +196,7 @@ private:
return false;
const auto kind = getSysEx7Kind (word);
return kind == SysEx7::Kind::Continue || kind == SysEx7::Kind::End;
return kind == SysEx7::Kind::continuation || kind == SysEx7::Kind::end;
}
static bool isSystemRealTime (uint32_t word)

View file

@ -40,16 +40,16 @@ struct SysEx7
enum class Kind : uint8_t
{
/** The whole message fits in a single 2-word packet. */
Complete = 0,
complete = 0,
/** The packet begins a SysEx message that will continue in subsequent packets. */
Begin = 1,
begin = 1,
/** The packet is a continuation of an ongoing SysEx message. */
Continue = 2,
continuation = 2,
/** The packet terminates an ongoing SysEx message. */
End = 3
end = 3
};
struct PacketBytes