ARM RTMidiBuffer alignment

This commit is contained in:
Robin Gareus 2020-09-28 03:12:38 +02:00
parent 5abe677fea
commit f52c5ca3ac
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -381,7 +381,11 @@ RTMidiBuffer::alloc_blob (uint32_t size)
}
uint32_t offset = _pool_size;
_pool_size += size;
#if defined(__arm__) || defined(__aarch64_
_pool_size += size + size % 4;
#else
_pool_size += size;
#endif
return offset;
}