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

◆ operator==()

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

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

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

+ Here is the call graph for this function: