Music playing in background

Hello, people. I am newbie developing games on Corona :S Well, I have a problem…

I need to hear a background music in a game, I use media.playEventSound(“beep-06.mp3”) but the music sounds just 6 seconds. :S How can I solve it?
 

media.playEventSound() is designed to play short clips.  It’s recommended that you use the audio.* API library to play sound and music.

The audio.* API’s allow you to load long tracks and start playing them before they are completely loaded.  It supports 32 separate sound channels playing different mixed sounds.  You can control the volume on each channel independently.   

There is one caveat.  The audio.* library uses OpenAL which is great, except that on Android, prior to Google fixing it in 4.1, has a noticeable lag.  If sound timing is critical, then for short clips, media.playEventSound should be used.

Rob

media.playEventSound() is designed to play short clips.  It’s recommended that you use the audio.* API library to play sound and music.

The audio.* API’s allow you to load long tracks and start playing them before they are completely loaded.  It supports 32 separate sound channels playing different mixed sounds.  You can control the volume on each channel independently.   

There is one caveat.  The audio.* library uses OpenAL which is great, except that on Android, prior to Google fixing it in 4.1, has a noticeable lag.  If sound timing is critical, then for short clips, media.playEventSound should be used.

Rob