#include <string.h>
const uint8_t chs = 8;
String File[chs];
uint8_t Channel[chs]; // 0 = STOP, 1 = BRAKE, 2 = PLAY, 3 = LOOP, 4 = RUN, 5 = OUT
uint8_t Gain[chs]; // 0-255, 0 = mute, 255 = 0dB
float Pitch[chs]; // 0 - 1, 0 = normal speed, 1 = double speed
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
int8_t out_buf_8[64];
int buf_len_8 = sizeof(out_buf_8);
int buf_len_16 = sizeof(out_buf_8) / 2;
Serial.println(buf_len_8);
Serial.println(buf_len_16);
// memset(File,"XXXXXXX.wav",sizeof(File));
memset(Channel, 0, sizeof(Channel));
memset(Gain, 188, sizeof(Gain));
memset(Pitch, 0.0f, sizeof(Pitch));
for (uint8_t i = 0; i < chs; i++)
{
Serial.println("channel command Gain Pitch ");
Serial.print(i);
Serial.print(" ");
Serial.print(Channel[i]);
Serial.print(" ");
Serial.print(Gain[i]);
Serial.print(" ");
Serial.println(Pitch[i]);
}
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}