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

◆ operator==()

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

Definition at line 46 of file audio.cpp.

46 {
47 if (mImpl == other.mImpl) {
48 return true;
49 }
50 if (mImpl == nullptr || other.mImpl == nullptr) {
51 return false;
52 }
53 if (mImpl->pcm().size() != other.mImpl->pcm().size()) {
54 return false;
55 }
56 for (fl::size i = 0; i < mImpl->pcm().size(); ++i) {
57 if (mImpl->pcm()[i] != other.mImpl->pcm()[i]) {
58 return false;
59 }
60 }
61 return true;
62}
AudioSampleImplPtr mImpl
Definition audio.h:52
fl::size size() const
Definition audio.cpp:30

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

+ Here is the call graph for this function: