From 6836df3cafad335bfe9aaf0fa2a03d3b49638281 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Apr 2021 09:36:46 +0200 Subject: [PATCH] Slightly more details message when sound data differs in ::equals(). --- .gitignore | 2 ++ src/sound_asset.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f0e22b4e..c8770315 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ GTAGS TAGS .ccls-cache compile_commands.json + +run/tools/dcpdummy \ No newline at end of file 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 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; } } -- 2.30.2