FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator==()

bool fl::AudioSample::operator== ( const AudioSample & other) const

Definition at line 91 of file audio.cpp.

91 {
92 if (mImpl == other.mImpl) {
93 return true;
94 }
95 if (mImpl == nullptr || other.mImpl == nullptr) {
96 return false;
97 }
98 if (mImpl->pcm().size() != other.mImpl->pcm().size()) {
99 return false;
100 }
101 for (fl::size i = 0; i < mImpl->pcm().size(); ++i) {
102 if (mImpl->pcm()[i] != other.mImpl->pcm()[i]) {
103 return false;
104 }
105 }
106 return true;
107}
AudioSampleImplPtr mImpl
Definition audio.h:59
fl::size size() const
Definition audio.cpp:75

References AudioSample(), mImpl, and size().

+ Here is the call graph for this function: