summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-29 09:36:46 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-29 09:36:46 +0200
commit6836df3cafad335bfe9aaf0fa2a03d3b49638281 (patch)
treebebdee0075be89b83d1cf3b20b0b751b05b50120 /src
parent5e1ce36be463bfc48663d4697860340649060d01 (diff)
Slightly more details message when sound data differs in ::equals().
Diffstat (limited to 'src')
-rw-r--r--src/sound_asset.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 04234c23..0eaa8fb5 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -207,7 +207,7 @@ SoundAsset::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHand
for (int channel = 0; channel < frame_A->channels(); ++channel) {
int32_t const d = abs(frame_A->get(channel, sample) - frame_B->get(channel, sample));
if (d > opt.max_audio_sample_error) {
- note (NoteType::ERROR, String::compose ("PCM data difference of %1", d));
+ note (NoteType::ERROR, String::compose("PCM data difference of %1 in frame %2, channel %3, sample %4", d, i, channel, sample));
return false;
}
}