In my app for android, i want to play a music in the background throughout until the game quits. The sound is of length 1 min. What i want is that the sound to repeat automatically when the track ends. any idea?
Update I figured out the solution myself. If someone else have the same problem, here is the solution SimpleAudioEngine::sharedEngine()->playBackgroundMusic(std::string(music_file_name)),true);
The true in the end tells if the sound will loop or not. True: sound will repeat once it has ended. False: Will play just once.