Definition at line 47 of file audio.cpp.
47 {
48 if (
mImpl == other.mImpl) {
49 return true;
50 }
51 if (
mImpl ==
nullptr || other.mImpl ==
nullptr) {
52 return false;
53 }
54 if (
mImpl->pcm().size() != other.mImpl->pcm().size()) {
55 return false;
56 }
57 for (
size_t i = 0; i <
mImpl->pcm().
size(); ++i) {
58 if (
mImpl->pcm()[i] != other.mImpl->pcm()[i]) {
59 return false;
60 }
61 }
62 return true;
63}
References AudioSample(), mImpl, and size().