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