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

Java Development

Reply
Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Organize buffering for real time audio

[ Edited ]

@schoudhry  you are speaking as if your app is the only app running on the BB.  LoL.

 

OK. Even if GC does not happen. Other processes some time will use so much cpu power that causes the read method to be called in a timely fashion and kick the player into buffering mode.

Retired
Posts: 6
Registered: ‎10-19-2010
My Device: Not Specified

Re: Organize buffering for real time audio

Please include details of cases where you experienced what you described above or at the very least some test environment setup to reproduce what is claimed. I do realize typically there would be multiple apps running on the device.
New Contributor
Posts: 4
Registered: ‎09-29-2011
My Device: Torch 9800
My Carrier: TELUS

Re: Organize buffering for real time audio

BVP,

 

I watched DEV07 and it was very informative.  I can't find any links to the source code mentioned in the presentation though.  Are those available?

Retired
Retired
Posts: 150
Registered: ‎10-19-2010
My Device: Not Specified
My Carrier: Rogers

Re: Organize buffering for real time audio

Hi Matt!

 

I am told that the code samples for all DevCon sessions will start to become available over the next few days at the DevCon On-Demand Portal, so it should hopefully be available sometime this week.

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Organize buffering for real time audio


schoudhry wrote:
Please include details of cases where you experienced what you described above or at the very least some test environment setup to reproduce what is claimed. I do realize typically there would be multiple apps running on the device.

Just play a stream using the method in the video and surf the web at the same time and you will see what I meant.

Highlighted
Retired
Posts: 6
Registered: ‎10-19-2010
My Device: Not Specified

Re: Organize buffering for real time audio


Aviator168 wrote:
Just play a stream using the method in the video and surf the web at the same time and you will see what I meant.

Just tried it and the player remained in Started state even with 4 different tabs trying to load pages. The algorithm takes into account current time vs player started time. If other processing being done on the system causes the read thread to get less CPU time slices, it will simply mean that more data is written in each read call. 

The source code should be available within this week. You will notice that the sample app is actually writing more data than is absolutely required to maintain Started state in each read call. The end-requirements and content type should provide a basis of determining how much more data should be written. In the sample app a value is chosen that prevents us from unnecessarily making too many writes without any observable gain in performance/real-time-ness. The end-result is real-time mixing as well as less battery/processing usage hit. 

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Organize buffering for real time audio

[ Edited ]

What device are you running this on?  I like to see your sample running in a real world application.

Retired
Posts: 6
Registered: ‎10-19-2010
My Device: Not Specified

Re: Organize buffering for real time audio

I tried the browsing while streaming test on a Torch 9860. I have previously run the sample on other 6.0 and 7.0 devices without issues as well. I'll try to respond to this thread once the source code becomes available.

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Organize buffering for real time audio

[ Edited ]

Very nice. Try that on the 9700. Better yet, try it on the 9800 with the virtual keyboard on while rotating the display so it constainly flipping between landscape and portrait mode.

New Contributor
Posts: 4
Registered: ‎09-29-2011
My Device: Torch 9800
My Carrier: TELUS

Re: Organize buffering for real time audio

Any update as to when the code from the examples used in DEV07 will be made available?