Loop a speaker pcm every few seconds

So here is my code and I'm a beginner so I have no idea how much of it works I just need help getting to loop my speaker I also have LED's that go on at the same time but the speaker doesn't loop here is my code ( i also deleted the code for the sound since its long)
#include <PCM.h>

const unsigned char sample[] PROGMEM = {

};

void setup()
{
startPlayback(sample, sizeof(sample));
}

void loop()
{

Serial.print("10 seconds past");
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(10000); // wait for a second
}

Compare the original line with the quote line. The original line has a SQUARE in it. Why?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.