@Override
	public boolean equals(Object other)
	{
		if (!(other instanceof DecodedAudio))
			return false;
					
		DecodedAudio otherAudio = (DecodedAudio)other;
		
		// Formats are unequal; so audio objects are not equal.
		if (!(mFormat.equals(otherAudio.mFormat)))
			return false;
		
		// Number of channels are different; so audio objects are unequal.
		if (mChannels.length != otherAudio.getChannels().length)
			return false;
		
		for (int idx = 0; idx < mChannels.length; idx++)
		{
			// If two channels are unequal, the audio objects are unequal.
			if (!(mChannels[idx].equals(otherAudio.getChannels()[idx])))
				return false;
		}
		
		return true;
	}