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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
maximsuzuki
Posts: 4
Registered: ‎03-09-2011
Accepted Solution

Audio Buffering API in BB OSv7

The marketing info in the developer site for SDK v7 Beta claims that:

 

  • Audio Buffering API: allow your app to set the buffer size (in milliseconds) before playback starts

How do we control this?

 

Thanks.

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 839
Registered: ‎04-12-2010
My Carrier: Bell

Re: Audio Buffering API in BB OSv7

Hi maximsuzuki,

This API can be accessed via StreamingBufferControl.setBufferTime(int millis):
http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/media/control/StreamingBufferC...

This control can be retrieved via Player.getControl("net.rim.device.api.media.control.StreamingBufferControl"):
http://www.blackberry.com/developers/docs/7.0.0api/javax/microedition/media/Controllable.html#getCon...

In this case, it is important to use the fully qualified name of the package as the getControl() method assumes javax.microedition.media.control if one is not specified.

 

Erik Oros

BlackBerry Development Advisor

Please note that I will be unavailable between May 19th and June 4th. Sincere apologies for any delays during this time. I will do my best to follow-up as soon as I am able.

Erik Oros
BlackBerry Development Advisor
@WaterlooErik
Please use plain text.