shut up -Wclass-memaccess
parent
e39f8603f6
commit
7e1e80eaea
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue