Slightly more details message when sound data differs in ::equals().
authorCarl Hetherington <cth@carlh.net>
Thu, 29 Apr 2021 07:36:46 +0000 (09:36 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 29 Apr 2021 07:36:46 +0000 (09:36 +0200)
.gitignore
src/sound_asset.cc

index f0e22b4e39bf661c276252274c9e12d1bc5acb0c..c8770315d170fd23e28c9b40dc27fb4f484c90bc 100644 (file)
@@ -16,3 +16,5 @@ GTAGS
 TAGS
 .ccls-cache
 compile_commands.json
+
+run/tools/dcpdummy
\ No newline at end of file
index 04234c23a238fe16c9a9dda4d7f24103a8d31db4..0eaa8fb50f69269c66b86b37e428a4f0e0368707 100644 (file)
@@ -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;
                                        }
                                }