Add alignment hints to types stored in containers

This commit is contained in:
Robbert van der Helm
2021-05-22 23:45:52 +02:00
parent da8f4aae19
commit 095ca11535
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ struct YaScaleEvent {
* A wrapper around `Event` for serialization purposes, as some event types
* include heap pointers.
*/
struct YaEvent {
struct alignas(16) YaEvent {
YaEvent() noexcept;
/**
@@ -30,7 +30,7 @@
* a single parameter during the current processing cycle. Used in
* `YaParameterChanges`.
*/
class YaParamValueQueue : public Steinberg::Vst::IParamValueQueue {
class alignas(16) YaParamValueQueue : public Steinberg::Vst::IParamValueQueue {
public:
/**
* We only provide a default constructor here, because we need to fill the
+1 -1
View File
@@ -36,7 +36,7 @@
*
* @see YaProcessData
*/
class YaAudioBusBuffers {
class alignas(16) YaAudioBusBuffers {
public:
/**
* We only provide a default constructor here, because we need to fill the