ATMlib question - pause before initialize?

Hullo,

So I’m working on getting sound and music in my game and I stumbled across something odd.

Though my init code is extremely minimal, and my atm file should be played immediately upon turning on the system, there’s a NOTICABLE delay - about 4-5 seconds worth.

Is this normal? Does ATMlib have something that forces it to not play for the first few seconds of boot, to not conflict with the default ARDUBOY boot code? Or does ATMlib just take 4-5 seconds to initialize on hardware, period?

Here’s the relevant code:

void setup()
{
arduboyQuickInit();
arduboy.setFrameRate(30);
arduboy.audio.on();

ATM.play(score);
}

void arduboyQuickInit()
{
arduboy.boot();
arduboy.display();
arduboy.audio.begin();
arduboy.waitNoButtons();
}

Thanks for any assistance!

Answers to this ATM music delay question should help.

1 Like

Thanks, exactly what I needed!

1 Like