Reorder sampleLength initialization.
Move the sampleLength variable declaration to improve code readability and maintain consistency in variable initialization within the constructor. This change ensures that related calculations are grouped logically.
This commit is contained in:
@@ -80,13 +80,13 @@ class VstChipProcessor : AudioWorkletProcessor() {
|
||||
var sustain = 0.5
|
||||
var release = 0.2
|
||||
|
||||
val sampleLength = 1 / sampleRate.toDouble()
|
||||
|
||||
val recordingBuffer = Float32Array(sampleRate / 60)
|
||||
var recordingState = RecordingState.STOPPED
|
||||
var recordingSample = 0
|
||||
var recordingStart = 0
|
||||
|
||||
val sampleLength = 1 / sampleRate.toDouble()
|
||||
|
||||
val rightDelayBuffer = Float32Array(sampleRate)
|
||||
val leftDelayBuffer = Float32Array(sampleRate)
|
||||
var delayIndex = 0
|
||||
|
||||
Reference in New Issue
Block a user