Remove union, use pointer tricks instead

This commit is contained in:
Geoffrey Merck
2020-05-08 16:44:53 +02:00
parent e7ff0d1898
commit f1a43ee520
2 changed files with 9 additions and 7 deletions
+4 -4
View File
@@ -32,10 +32,10 @@ public:
private:
CFMDownsampleRB m_ringBuffer;
union {
int32_t m_samplePack;
int8_t m_samplePackBytes[4];
};
int32_t m_samplePack;
int32_t *m_samplePackBytes;
uint8_t m_packIndex;
uint8_t m_downSampleIndex;
};