How to make a menu theme looped?

how would i create a menu music theme (LOOPED)?
I tried:

auto audio = CocosDenshion::SimpleAudioEngine::getInstance();

as said in a tutorial, but it gave me an error saying

Use of undeclared identifier ‘CocosDenshion’

What is wrong with the code? Also my menu theme is called “menuLoop.mp3”

I’m using it, but on the line auto audio = SimpleAudioEngine::getInstance(); ";, i’m getting an error saying that getInstance isn’t a member of SimpleAudioEngine.
I did download SimpleAudioEngine and add it to my project.

Are you using v4? If so just use AugioEngine.

1 Like

it works thanks!