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

Adobe AIR Development

Reply
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

AudioManager OutPut Range

The documentation on the AudioManager has the speaker volume range between 0.0 and 1.0 (see setOutputLevel).

 

http://www.blackberry.com/developers/docs/airapi/1.0.0/index.html

 

However, it seems to be values between 0-100.  Can anyone else confirm this?

 

Thanks.

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AudioManager OutPut Range

Yes, this sets the system volume to the maximum:

 

AudioManager.audioManager.setOutputLevel(100);

 

 


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!