I'm using a MKRZero to play audio files via I2S using an UDA1334 I2S DAC as an amp.
I've been having a few issues with the quality of the audio playback - initially I was getting stuttering on the playback which I think was caused by a buffer underrun or something. I've solved this by using a different SD card (though I'm still a bit unclear why this worked as the better card is technically the slower one!)
My remaining issue is that when an audio file isn't being played I'm getting a lot of low level white noise on the output. This immediately disappears when a file is played.
I assume it's due to floating levels or something, but I'm not sure how to stop it.
I am using the Arduinosound library and I've noticed it starts by playing a short 'burst' of silence which seems to force the levels low (I assume) and stops the noise.
So I assume I need to decouple something (not sure how to do this) or ground something perhaps? Or is there a simple way to 'hold the output low' to create the silence as per the Audiosound library?
Any suggestions would be gratefully received!