mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 11:33:44 +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;
|
||||
float64_t _sampleRate;
|
||||
|
||||
|
||||
AudioFormat() {
|
||||
std::memset(this, 0, sizeof(*this));
|
||||
memset(this, 0, sizeof(*this));
|
||||
}
|
||||
~AudioFormat() { }
|
||||
|
||||
AudioFormat& operator=(const AudioFormat& fmt) {
|
||||
std::memcpy(this, &fmt, sizeof(*this));
|
||||
memcpy(this, &fmt, sizeof(*this));
|
||||
return *this;
|
||||
}
|
||||
|
||||
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) {
|
||||
return std::memcmp(this, &fmt, sizeof(*this)) != 0;
|
||||
return memcmp(this, &fmt, sizeof(*this)) != 0;
|
||||
}
|
||||
|
||||
void setCanonicalFloat32(uint32_t channels) {
|
||||
|
|
Loading…
Reference in a new issue