mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
parent
08cde09921
commit
f155d71b19
1 changed files with 4 additions and 4 deletions
|
|
@ -112,7 +112,7 @@ MidiMessage::MidiMessage (const int byte1,
|
|||
data[0] = (uint8) byte1;
|
||||
|
||||
// check that the length matches the data..
|
||||
jassert (getMessageLengthFromFirstByte ((uint8) byte1) == 1);
|
||||
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 1);
|
||||
}
|
||||
|
||||
MidiMessage::MidiMessage (const int byte1,
|
||||
|
|
@ -126,7 +126,7 @@ MidiMessage::MidiMessage (const int byte1,
|
|||
data[1] = (uint8) byte2;
|
||||
|
||||
// check that the length matches the data..
|
||||
jassert (getMessageLengthFromFirstByte ((uint8) byte1) == 2);
|
||||
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 2);
|
||||
}
|
||||
|
||||
MidiMessage::MidiMessage (const int byte1,
|
||||
|
|
@ -142,7 +142,7 @@ MidiMessage::MidiMessage (const int byte1,
|
|||
data[2] = (uint8) byte3;
|
||||
|
||||
// check that the length matches the data..
|
||||
jassert (getMessageLengthFromFirstByte ((uint8) byte1) == 3);
|
||||
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 3);
|
||||
}
|
||||
|
||||
MidiMessage::MidiMessage (const MidiMessage& other) throw()
|
||||
|
|
@ -789,7 +789,7 @@ bool MidiMessage::isKeySignatureMetaEvent() const throw()
|
|||
|
||||
int MidiMessage::getKeySignatureNumberOfSharpsOrFlats() const throw()
|
||||
{
|
||||
return (int)(*getMetaEventData());
|
||||
return (int) *getMetaEventData();
|
||||
}
|
||||
|
||||
const MidiMessage MidiMessage::endOfTrack() throw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue