TMRh20 / TMRpcm

Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported
http://tmrh20.blogspot.com
597 stars 178 forks source link

TMPpcm:1643 compiler warning #198

Closed sonyhome closed 10 months ago

sonyhome commented 10 months ago

Line 1643 in TMRpcm::finalizeWavTemplate should cast to byte to remove compilation warnings:

seek(4); byte data[4] = {lowByte(fSize),highByte(fSize), (byte) (fSize >> 16),(byte) (fSize >> 24)};

TMRh20 commented 10 months ago

Hmm, I guess I will take a look at all the compiler warnings today. I have some free time here during the holidays, so should clean this one up too. Thanks!