Unverified Commit 56b6856d authored by Krzysiek S's avatar Krzysiek S Committed by GitHub

Fix noise at first playback by proper filterBuff initialization

parent 6bedb144
......@@ -2105,6 +2105,7 @@ uint32_t Audio::stopSong() {
log_w("Closing audio file"); // for debug
}
memset(m_outBuff, 0, 2048 * 2 * sizeof(uint16_t)); // Clear OutputBuffer
memset(m_filterBuff, 0, sizeof(m_filterBuff)); // Clear FilterBuffer
m_validSamples = 0;
return pos;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment