Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
LSDsl
Posts: 5
Registered: 05-08-2009

Play 2 sounds in one time (Storm)

I have 2 Player instnace. One need to play background sound, second to play other sound.

 

Background sound play in loop 

 

bgPlayer.setLoopCount(-1);

try {

bgPlayer.start();

} catch (MediaException e) {

e.printStackTrace();

}

 When i try to play sound using other Player, this (bgPlayer) stop play music. Why? How does it fix?

 

 

Please use plain text.
Developer
rafo
Posts: 507
Registered: 07-15-2008

Re: Play 2 sounds in one time (Storm)

As far as I know there can be only one active player at a moment of time.

 

----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
Developer
acowart
Posts: 163
Registered: 07-16-2008
My Carrier: Sprint

Re: Play 2 sounds in one time (Storm)

That is a limitation with all CDMA devices.  There is no known workaround.
Andrew Cowart | Metova
www.metova.com
Please use plain text.
Developer
rafo
Posts: 507
Registered: 07-15-2008

Re: Play 2 sounds in one time (Storm)

AFAIK in J2ME (regardless of CDMA or not) there is only one active (playing) Player instance allowed at a time.
----------------
if your issue solved set "Solution" mark at the relevant post
Please use plain text.
Developer
acowart
Posts: 163
Registered: 07-16-2008
My Carrier: Sprint

Re: Play 2 sounds in one time (Storm)

I've had cases where two songs played at once in my program (...not on purpose), so there definitely can be two players.. Just not on CDMA devices (such as the Storm).
Andrew Cowart | Metova
www.metova.com
Please use plain text.