m_frameSamples = 0;
m_frameSize = 0;
}
+
+ bool operator==(const AEAudioFormat& fmt) const
+ {
+ return m_dataFormat == fmt.m_dataFormat &&
+ m_sampleRate == fmt.m_sampleRate &&
+ m_encodedRate == fmt.m_encodedRate &&
+ m_channelLayout == fmt.m_channelLayout &&
+ m_frames == fmt.m_frames &&
+ m_frameSamples == fmt.m_frameSamples &&
+ m_frameSize == fmt.m_frameSize;
+ }
} AEAudioFormat;
return *this;
}
-bool CAEChannelInfo::operator==(const CAEChannelInfo& rhs)
+bool CAEChannelInfo::operator==(const CAEChannelInfo& rhs) const
{
/* if the channel count doesnt match, no need to check further */
if (m_channelCount != rhs.m_channelCount)
CAEChannelInfo& operator=(const CAEChannelInfo& rhs);
CAEChannelInfo& operator=(const enum AEChannel* rhs);
CAEChannelInfo& operator=(const enum AEStdChLayout rhs);
- bool operator==(const CAEChannelInfo& rhs);
+ bool operator==(const CAEChannelInfo& rhs) const;
bool operator!=(const CAEChannelInfo& rhs);
CAEChannelInfo& operator+=(const enum AEChannel& rhs);
CAEChannelInfo& operator-=(const enum AEChannel& rhs);