From 778f43e59740f01253640c19729a4ce45774c978 Mon Sep 17 00:00:00 2001 From: dnesov Date: Sat, 26 Jul 2025 22:34:09 +0200 Subject: [PATCH] Remove unnecessary comments. --- Source/AudioFileAnalyzer.cs | 4 ++-- Views/MainView.tscn | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/AudioFileAnalyzer.cs b/Source/AudioFileAnalyzer.cs index 987826f..2ea3c73 100644 --- a/Source/AudioFileAnalyzer.cs +++ b/Source/AudioFileAnalyzer.cs @@ -68,8 +68,8 @@ public partial class AudioFileAnalyzer : Node // Read the raw bytes for the current sample reader.Read(buffer, 0, buffer.Length); - // Convert the byte array to a 16-bit sample (assuming 16-bit PCM) - short sample = BitConverter.ToInt16(buffer, 0); // Assuming 16-bit signed samples + // Convert the byte array to a 16-bit sample + short sample = BitConverter.ToInt16(buffer, 0); waveformInfo.Samples[sampleIndex++] = (float)sample / short.MaxValue; } diff --git a/Views/MainView.tscn b/Views/MainView.tscn index e85a7a7..68f76b9 100644 --- a/Views/MainView.tscn +++ b/Views/MainView.tscn @@ -140,6 +140,7 @@ size_flags_horizontal = 3 size_flags_vertical = 3 [node name="LeftDock" type="Container" parent="VBoxContainer/VSplitContainer/HSplitContainer"] +z_index = 2 custom_minimum_size = Vector2(200, 0) layout_mode = 2 size_flags_horizontal = 3 @@ -187,3 +188,4 @@ mouse_filter = 2 script = ExtResource("11_gc3ui") [connection signal="clip_added" from="VBoxContainer/VSplitContainer/HSplitContainer/Timeline" to="ProjectController" method="CreateAudioClipPreview"] +[connection signal="AudioClipDropped" from="ProjectController" to="VBoxContainer/VSplitContainer/HSplitContainer/Timeline" method="clip_dropped"]