From 8f091dad1ec0416f8f51c84d6264e2bfbb77f5c7 Mon Sep 17 00:00:00 2001 From: boblark Date: Wed, 9 Oct 2024 12:06:51 -0700 Subject: [PATCH] Redid zeroing in begin() to not zero non-floats --- output_spdif3_f32.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/output_spdif3_f32.cpp b/output_spdif3_f32.cpp index 76bf3dc..43091da 100644 --- a/output_spdif3_f32.cpp +++ b/output_spdif3_f32.cpp @@ -19,6 +19,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +// Redid zeroing in begin() to not zero non-floats with memset(). Bob Larkin 9 Oct 2024 /* http://www.hardwarebook.info/S/PDIF https://www.mikrocontroller.net/articles/S/PDIF @@ -74,8 +75,9 @@ void AudioOutputSPDIF3_F32::begin(void) block_left_1st = nullptr; block_right_1st = nullptr; - memset(&block_silent, 0, sizeof(block_silent)); - + //memset(&block_silent, 0, sizeof(block_silent)); // Was 25 Aug 2024 + for(int i=0; i