Small cleaning.
This commit is contained in:
parent
70220fc6e9
commit
d7fe11913f
26 changed files with 613 additions and 548 deletions
|
@ -6,7 +6,7 @@
|
|||
#include <iostream>
|
||||
#include <bitset>
|
||||
|
||||
int MidiChannelEventAdapter::ReadEvent(std::ifstream* file, char firstByte, MidiChannelEvent* event, MidiChannelEvent::Type& lastEventType)
|
||||
int MidiChannelEventAdapter::readEvent(std::ifstream* file, char firstByte, MidiChannelEvent* event, MidiChannelEvent::Type& lastEventType)
|
||||
{
|
||||
int first_four_bits = 0xF0;
|
||||
int second_four_bits = 0xF;
|
||||
|
@ -34,11 +34,11 @@ int MidiChannelEventAdapter::ReadEvent(std::ifstream* file, char firstByte, Midi
|
|||
{
|
||||
if (isStatusByte)
|
||||
{
|
||||
byteCount += ReadEventData(file, event);
|
||||
byteCount += readEventData(file, event);
|
||||
}
|
||||
else
|
||||
{
|
||||
byteCount += ReadEventData(file, event, firstByte);
|
||||
byteCount += readEventData(file, event, firstByte);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ int MidiChannelEventAdapter::ReadEvent(std::ifstream* file, char firstByte, Midi
|
|||
return byteCount;
|
||||
}
|
||||
|
||||
int MidiChannelEventAdapter::ReadEventData(std::ifstream* file, MidiChannelEvent* event, char c)
|
||||
int MidiChannelEventAdapter::readEventData(std::ifstream* file, MidiChannelEvent* event, char c)
|
||||
{
|
||||
int value0 = int(c);
|
||||
int value1 = *BinaryStream::getNextByteAsInt(file);
|
||||
|
@ -63,7 +63,7 @@ int MidiChannelEventAdapter::ReadEventData(std::ifstream* file, MidiChannelEvent
|
|||
return 1;
|
||||
}
|
||||
|
||||
int MidiChannelEventAdapter::ReadEventData(std::ifstream* file, MidiChannelEvent* event)
|
||||
int MidiChannelEventAdapter::readEventData(std::ifstream* file, MidiChannelEvent* event)
|
||||
{
|
||||
int value0 = *BinaryStream::getNextByteAsInt(file);
|
||||
int value1 = *BinaryStream::getNextByteAsInt(file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue