Bladeren bron

potentially fixed bug caused by deinterleaving stereo files with uppercase file extensions

Jonathan Higgins 6 maanden geleden
bovenliggende
commit
cb65bcfbe6
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      scenes/Nodes/nodes.tscn
  2. 2 2
      scenes/main/scripts/run_thread.gd

+ 1 - 1
scenes/Nodes/nodes.tscn

@@ -205,7 +205,7 @@ theme_override_constants/margin_bottom = 5
 [node name="RunProcess" type="Button" parent="outputfile" groups=["outputnode"]]
 custom_minimum_size = Vector2(0, 43)
 layout_mode = 2
-tooltip_text = "Generates the batch file and runs the CDP commands in the thread."
+tooltip_text = "Runs the CDP commands in the thread."
 text = "Run Thread"
 metadata/outputfunction = "runprocess"
 

+ 2 - 2
scenes/main/scripts/run_thread.gd

@@ -298,7 +298,7 @@ func run_thread_with_branches():
 				
 						# Process left and right seperately
 						for channel in ["c1", "c2"]:
-							var dual_mono_file = current_infile.get_basename() + "_%s.wav" % channel
+							var dual_mono_file = current_infile.get_basename() + "_%s.%s" % [channel, current_infile.get_extension()]
 							
 							var makeprocess = await make_process(node, process_count, dual_mono_file, slider_data)
 							# run the command
@@ -405,7 +405,7 @@ func run_thread_with_branches():
 							# Process left and right seperately
 							var dual_mono_output = []
 							for channel in ["c1", "c2"]:
-								var dual_mono_file = current_infile.get_basename() + "_%s.wav" % channel
+								var dual_mono_file = current_infile.get_basename() + "_%s.%s" % [channel, current_infile.get_extension()]
 								
 								var makeprocess = await make_process(node, process_count, dual_mono_file, slider_data)
 								# run the command