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

◆ operator==()

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

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}
AudioSampleImplPtr mImpl
Definition audio.h:50
size_t size() const
Definition audio.cpp:19

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

+ Here is the call graph for this function: