ARM RTMidiBuffer alignment

This commit is contained in:
Robin Gareus
2020-09-28 03:12:38 +02:00
parent 5abe677fea
commit f52c5ca3ac

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;
}