From Void Setup to Void Loop

How do I get this line that's in Void Setup to work in Void Loop ?

Thanks

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

void loop()
{
}

How do you know it doesn't?

Sounds like a title of a book - "From void setup() to void loop()", the mystery of the missing code.

(deleted)

Presumably you want to the sample to repeat once it has finished?
Here is some code that achieves that.

You probably need to code up a state machine that recognizes when the clip stops playing and
starts it playing again.

Something like:

void loop()
{
  if (! is_playing())
    start_playing() ;
}

Its function loop() and function setup(). Void is just the return type marker to say no value is returned.