Remove unnecessary comments.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user