BlueHash,
Thanks for the code.
i haven't tried it yet, but i will soon.
My project includes audio files to be taken from the sd card and give it to a DAC.
Is it possible to play different files based on some condition using this code?
For instance if a parameter "a" is passed to the function it plays the file based on the value of "a".