Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Jyaif
Posts: 14
Registered: ‎11-11-2011
My Device: Playbook
Accepted Solution

Loop mp3

To loop a mp3 (background music for a game), do I have to detect the end of the mp3 and restart it, or is there a simpler way?

BlackBerry Development Advisor
anhu
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook

Re: Loop mp3

One solution would be to do what Beligerent Blocks does which is save the background audio as wav file and then use the sound.c/h file from beligerent blocks to loop it continuously.
Contributor
Jyaif
Posts: 14
Registered: ‎11-11-2011
My Device: Playbook

Re: Loop mp3

Thanks for the response. A wav would take too much space. I ended simply detecting the end of the mp3 and starting the playback again.