mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 16:30:16 +02:00
ubuntu build fix (remove std::memset ...)
This commit is contained in:
parent
e2f3392f09
commit
e64c81420e
1 changed files with 5 additions and 4 deletions
|
@ -42,22 +42,23 @@ struct AudioFormat {
|
||||||
uint32_t _bitsPerChannel;
|
uint32_t _bitsPerChannel;
|
||||||
float64_t _sampleRate;
|
float64_t _sampleRate;
|
||||||
|
|
||||||
|
|
||||||
AudioFormat() {
|
AudioFormat() {
|
||||||
std::memset(this, 0, sizeof(*this));
|
memset(this, 0, sizeof(*this));
|
||||||
}
|
}
|
||||||
~AudioFormat() { }
|
~AudioFormat() { }
|
||||||
|
|
||||||
AudioFormat& operator=(const AudioFormat& fmt) {
|
AudioFormat& operator=(const AudioFormat& fmt) {
|
||||||
std::memcpy(this, &fmt, sizeof(*this));
|
memcpy(this, &fmt, sizeof(*this));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const AudioFormat& fmt) {
|
bool operator==(const AudioFormat& fmt) {
|
||||||
return std::memcmp(this, &fmt, sizeof(*this)) == 0;
|
return memcmp(this, &fmt, sizeof(*this)) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const AudioFormat& fmt) {
|
bool operator!=(const AudioFormat& fmt) {
|
||||||
return std::memcmp(this, &fmt, sizeof(*this)) != 0;
|
return memcmp(this, &fmt, sizeof(*this)) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCanonicalFloat32(uint32_t channels) {
|
void setCanonicalFloat32(uint32_t channels) {
|
||||||
|
|
Loading…
Reference in a new issue