Definition at line 35 of file audio.cpp.
35 {
36 if (
mImpl == other.mImpl) {
37 return true;
38 }
39 if (
mImpl ==
nullptr || other.mImpl ==
nullptr) {
40 return false;
41 }
42 if (
mImpl->pcm().size() != other.mImpl->pcm().size()) {
43 return false;
44 }
45 for (
size_t i = 0; i <
mImpl->pcm().
size(); ++i) {
46 if (
mImpl->pcm()[i] != other.mImpl->pcm()[i]) {
47 return false;
48 }
49 }
50 return true;
51}
References AudioSample(), mImpl, and size().