From 2fad6478b44cd2184cf721ca3f58e3a9d9a0d83a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 11 Jul 2025 21:25:06 +1000 Subject: [PATCH] CDImage: Include the WAV file's details when incompatible --- src/util/cd_image_cue.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/cd_image_cue.cpp b/src/util/cd_image_cue.cpp index f082806c0..08cbe7715 100644 --- a/src/util/cd_image_cue.cpp +++ b/src/util/cd_image_cue.cpp @@ -3,6 +3,7 @@ #include "cd_image.h" #include "cue_parser.h" +#include "host.h" #include "wav_reader_writer.h" #include "common/align.h" @@ -618,7 +619,10 @@ bool CDImageCueSheet::OpenAndParseCueSheet(const char* path, Error* error) { if (reader.GetNumChannels() != AUDIO_CHANNELS || reader.GetSampleRate() != AUDIO_SAMPLE_RATE) { - Error::SetStringFmt(error, "WAV files must be stereo and use a sample rate of 44100hz."); + Error::SetStringFmt(error, + TRANSLATE_FS("CDImage", "{0} uses a sample rate of {1}hz and has {2} channels.\n" + "WAV files must be stereo and use a sample rate of 44100hz."), + Path::GetFileName(track_filename), reader.GetSampleRate(), reader.GetNumChannels()); return false; }