Electric Potato
Well-known member
Hey guys,
Maybe a silly question but I can't figure out how to assign a filename to a String, say "KICK014.RAW" for example, and then pass that String into AudioPlaySerialflashRaw :: play(const char *filename). Obviously it says it takes a char variable, but I dont understand what to do with that information, since my only experience with chars has been that they hold a single character.
To be clear this is all I want to do:
But it won't compile, cause there's no matching function for passing in a String like that.
Thanks for any help!
Maybe a silly question but I can't figure out how to assign a filename to a String, say "KICK014.RAW" for example, and then pass that String into AudioPlaySerialflashRaw :: play(const char *filename). Obviously it says it takes a char variable, but I dont understand what to do with that information, since my only experience with chars has been that they hold a single character.
To be clear this is all I want to do:
Code:
String filename = "K014.RAW";
serialFlashRaw.play(filename);
But it won't compile, cause there's no matching function for passing in a String like that.
Thanks for any help!