shut up -Wclass-memaccess

master
zetaPRIME 2022-03-16 04:36:50 -04:00
parent e39f8603f6
commit 7e1e80eaea
1 changed files with 3 additions and 2 deletions

View File

@ -15,8 +15,9 @@ namespace Xybrid::NodeLib {
SVFilter() = default;
~SVFilter() = default;
inline SVFilter(const SVFilter& o) { std::memcpy(this, &o, sizeof(SVFilter)); } // trivial enough contents
inline SVFilter& operator=(const SVFilter& o) { std::memcpy(this, &o, sizeof(SVFilter)); return *this; } // same
// nothing used here should care about taking the raw approach
inline SVFilter(const SVFilter& o) { std::memcpy(static_cast<void*>(this), static_cast<const void*>(&o), sizeof(SVFilter)); }
inline SVFilter& operator=(const SVFilter& o) { std::memcpy(static_cast<void*>(this), static_cast<const void*>(&o), sizeof(SVFilter)); return *this; }
void process(Data::AudioFrame in, double freq, double res, int oversamp = 2);
inline void reset() { low = 0.0; high = 0.0; band = 0.0; notch = 0.0; }