File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,9 @@ bool AudioModelIO::CheckAudioModelFile(const std::filesystem::path &path) {
281281bool AudioModelIO::CheckAudioModel () {
282282 YALL_DEBUG_ << " Check AudioModel File: " + in_file_path.string ();
283283
284- // x.wav handler
285- if (in_file_path.stem () == std::filesystem::path (" x" )){
284+ // In some projects, the creator will use x.wav, z.wav or other non-existing audio to force truncation of audio
285+ // here is a basic handle to reduce errors
286+ if (!std::filesystem::exists (in_file_path)){
286287 return true ;
287288 }
288289
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ void lessampler::run() {
5858
5959 // Check if an audio model exists。 If it does not exist, turn on multithreaded generation
6060 if (!audio_model_io.CheckAudioModel ()) {
61- YALL_INFO_ << " Audio model not found, generating..." ;
61+ YALL_INFO_ << " Audio model: " + in_file_path. string () + " not found, generating..." ;
6262 GenerateAudioModel genmodule (std::filesystem::weakly_canonical (std::filesystem::path (argv[1 ])).parent_path (), configure);
6363 }
6464
You can’t perform that action at this time.
0 commit comments