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:
parent
c540fa4241
commit
dadac11ffd
2 changed files with 9 additions and 9 deletions
|
|
@ -121,25 +121,25 @@ private:
|
||||||
{
|
{
|
||||||
switch (getSysEx7Kind (packet[0]))
|
switch (getSysEx7Kind (packet[0]))
|
||||||
{
|
{
|
||||||
case SysEx7::Kind::Complete:
|
case SysEx7::Kind::complete:
|
||||||
startSysExMessage (time);
|
startSysExMessage (time);
|
||||||
pushBytes (packet);
|
pushBytes (packet);
|
||||||
terminateSysExMessage (callback);
|
terminateSysExMessage (callback);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SysEx7::Kind::Begin:
|
case SysEx7::Kind::begin:
|
||||||
startSysExMessage (time);
|
startSysExMessage (time);
|
||||||
pushBytes (packet);
|
pushBytes (packet);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SysEx7::Kind::Continue:
|
case SysEx7::Kind::continuation:
|
||||||
if (pendingSysExData.empty())
|
if (pendingSysExData.empty())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
pushBytes (packet);
|
pushBytes (packet);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SysEx7::Kind::End:
|
case SysEx7::Kind::end:
|
||||||
if (pendingSysExData.empty())
|
if (pendingSysExData.empty())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -196,7 +196,7 @@ private:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto kind = getSysEx7Kind (word);
|
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)
|
static bool isSystemRealTime (uint32_t word)
|
||||||
|
|
|
||||||
|
|
@ -40,16 +40,16 @@ struct SysEx7
|
||||||
enum class Kind : uint8_t
|
enum class Kind : uint8_t
|
||||||
{
|
{
|
||||||
/** The whole message fits in a single 2-word packet. */
|
/** 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. */
|
/** 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. */
|
/** The packet is a continuation of an ongoing SysEx message. */
|
||||||
Continue = 2,
|
continuation = 2,
|
||||||
|
|
||||||
/** The packet terminates an ongoing SysEx message. */
|
/** The packet terminates an ongoing SysEx message. */
|
||||||
End = 3
|
end = 3
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PacketBytes
|
struct PacketBytes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue