diff --git a/src/LibBasicFunctions.h b/src/LibBasicFunctions.h
index 900794b..3fe8386 100644
--- a/src/LibBasicFunctions.h
+++ b/src/LibBasicFunctions.h
@@ -88,11 +88,11 @@ void clearAudioBlock(audio_block_t *block);
/// @param mix float between 0.0 and 1.0.
void alphaBlend(audio_block_t *out, audio_block_t *dry, audio_block_t* wet, float mix);
-/// Applies a gain to the audio via fixed-point scaling accoring to
+/// Applies a gain to the audio via fixed-point scaling according to
/// out = int * (vol * 2^coeffShift)
/// @param out pointer to output audio block
/// @param in pointer to input audio block
-/// @param vol volume cofficient between -1.0 and +1.0
+/// @param vol volume coefficient between -1.0 and +1.0
/// @param coeffShift number of bits to shift the coefficient
void gainAdjust(audio_block_t *out, audio_block_t *in, float vol, int coeffShift = 0);
diff --git a/src/effects/AudioEffectAnalogDelay.cpp b/src/effects/AudioEffectAnalogDelay.cpp
index f64f172..a32fc8b 100644
--- a/src/effects/AudioEffectAnalogDelay.cpp
+++ b/src/effects/AudioEffectAnalogDelay.cpp
@@ -151,7 +151,7 @@ void AudioEffectAnalogDelay::update(void)
transmit(blockToOutput);
release(inputAudioBlock);
- release(m_previousBlock);
+ if (m_previousBlock) { release(m_previousBlock); }
m_previousBlock = blockToOutput;
if (m_blockToRelease) release(m_blockToRelease);
@@ -255,7 +255,7 @@ void AudioEffectAnalogDelay::m_postProcessing(audio_block_t *out, audio_block_t
memcpy(out->data, dry->data, sizeof(int16_t) * AUDIO_BLOCK_SAMPLES);
}
// Set the output volume
- gainAdjust(out, out, m_volume, 1);
+ gainAdjust(out, out, m_volume);
}