Fix terrible SoundAsset::equals() implementation.
authorCarl Hetherington <cth@carlh.net>
Sun, 29 Nov 2020 19:57:57 +0000 (20:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 29 Nov 2020 19:57:57 +0000 (20:57 +0100)
commite116649cb93e7784601c1c55b2f3c8cf32099abf
treefa7083326332e9a0cb7c6e6795f98396b25f4f86
parent54d45efaa9913191806144d99868a6edbe8c488c
Fix terrible SoundAsset::equals() implementation.

It would check individual bytes of samples to see if they differed
by more than the threshold.  Not only is this almost useless, but
the default threshold is 256 so with the default settings it would
always say that two assets of the same length (and channels, etc.)
were the same, even if the sample data was different.
src/sound_asset.cc
test/dcp_test.cc