Description
I wired up the I2S MAX08357 breakout board to the MKZero and uploaded the WavPlayback from the https://github.com/arduino-libraries/ArduinoSound library. But somehow nothing useful happens.
If I use a wav file I get this:
Initializing SD card...initialization done.
wave file is invalid!
Disabling this check sheds some light on the issue:
Initializing SD card...initialization done.
Bits per sample = -1
Channels = -1
Sample rate = -1 Hz
Duration = 1 seconds
unable to play wave file using I2S!
This was with a mono, 8bit/sample wav file. OK, I tried a 16 bit mono, at least this file makes some sense to the parser...?
Bits per sample = 16
Channels = 1
Sample rate = 22050 Hz
Duration = 0 seconds
unable to play wave file using I2S!
If I go on and disable the sanity check this one file plays, not very clean, but at least something is coming out which is remotely like the sound I expect.
16bit stereo is again not recognized by the sketch...
Initializing SD card...initialization done.
Bits per sample = -1
Channels = -1
Sample rate = -1 Hz
Duration = 1 seconds
unable to play wave file using I2S!
To aggravate the problems, some 16bit/22050s/s/mono files will play, but not all of them, I cannot see the difference.
Any idea what do I do wrong?