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

◆ operator==()

bool fl::audio::Sample::operator== ( const Sample & other) const

Definition at line 102 of file audio.cpp.hpp.

102 {
103 if (mImpl == other.mImpl) {
104 return true;
105 }
106 if (mImpl == nullptr || other.mImpl == nullptr) {
107 return false;
108 }
109 if (mImpl->pcm().size() != other.mImpl->pcm().size()) {
110 return false;
111 }
112 for (fl::size i = 0; i < mImpl->pcm().size(); ++i) {
113 if (mImpl->pcm()[i] != other.mImpl->pcm()[i]) {
114 return false;
115 }
116 }
117 return true;
118}
SampleImplPtr mImpl
Definition audio.h:62
fl::size size() const FL_NOEXCEPT
Definition audio.cpp.hpp:86

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

+ Here is the call graph for this function: