summaryrefslogtreecommitdiff
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
parent5e1ce36be463bfc48663d4697860340649060d01 (diff)
Slightly more details message when sound data differs in ::equals().
-rw-r--r--.gitignore2
-rw-r--r--src/sound_asset.cc2
2 files changed, 3 insertions, 1 deletions
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<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;
}
}