Hi,
I took a look at the example code when you initially posted your question, but didn't feel qualified enough to give an answer. Anyway, here's my "opinion":
I guess you need to instantiate multiple files:
Code:
File frec1;
File frec2;
File frec3;
and you can then record into different *.raw files like so:
Code:
void startRecording1() {
if (SD.exists("RECORD1.RAW")) {
SD.remove("RECORD1.RAW");
}
frec1 = SD.open("RECORD1.RAW", FILE_WRITE);
if (frec1) {
queue1.begin();
mode = 1;
}
}
void startRecording2() {
if (SD.exists("RECORD2.RAW")) {
SD.remove("RECORD2.RAW");
}
frec2 = SD.open("RECORD2.RAW", FILE_WRITE);
if (frec2) {
queue2.begin();
mode = 1;
}
}
// and so on...
Or you could use a single record(int number); function where "number" tells the function which file to write to.
This is just my guess and untested, I hope it helps...
-Ben