midisync.cpp
// swap byte-order to Little Endian

swap byte-order to Little Endian
swap byte - order to Little Endian
void SwapLong(uint32_t *v)
{
  uint8_t a = *v & 0xff;
  uint8_t b = (*v >> 8) & 0xff;
  uint8_t c = (*v >> 16) & 0xff;
  uint8_t d = (*v >> 24) & 0xff;
  *v = (a << 24) | (b << 16) | (c << 8) | d;
}
void SwapLong ( uint32_t * v ) { uint8_t a = * v & 0xff ; uint8_t b = ( * v >> 8 ) & 0xff ; uint8_t c = ( * v >> 16 ) & 0xff ; uint8_t d = ( * v >> 24 ) & 0xff ; * v = ( a << 24 ) | ( b << 16 ) | ( c << 8 ) | d ; }
swap byte-order to Little Endian
swap byte - order to Little Endian