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 * A wrapper around `Event` for serialization purposes, as some event types
* include heap pointers. * include heap pointers.
*/ */
struct YaEvent { struct alignas(16) YaEvent {
YaEvent() noexcept; YaEvent() noexcept;
/** /**
@@ -30,7 +30,7 @@
* a single parameter during the current processing cycle. Used in * a single parameter during the current processing cycle. Used in
* `YaParameterChanges`. * `YaParameterChanges`.
*/ */
class YaParamValueQueue : public Steinberg::Vst::IParamValueQueue { class alignas(16) YaParamValueQueue : public Steinberg::Vst::IParamValueQueue {
public: public:
/** /**
* We only provide a default constructor here, because we need to fill the * We only provide a default constructor here, because we need to fill the
+1 -1
View File
@@ -36,7 +36,7 @@
* *
* @see YaProcessData * @see YaProcessData
*/ */
class YaAudioBusBuffers { class alignas(16) YaAudioBusBuffers {
public: public:
/** /**
* We only provide a default constructor here, because we need to fill the * We only provide a default constructor here, because we need to fill the