Arduino
Changing the Sample Size to 32 bits (e.g. for an ES9018 DAC)
There are some DACs out there that only support 32 bits: E.g the ES9018K2M module which is sold as high end HIFI DAC. Therefore sometimes it is necessary to change the sample size e.g. from 16 to 32 bits when your codec produces 16 bits. This can be easily done with the help of the NumberFormatConverterStream class of the Arduino Audio Tools library: I2SStream i2s; // final output of decoded stream NumberFormatConverterStream fc(i2s); // write Read more…