BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-11-2011, 09:35 AM   #1
plevintampabay
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Posts: 72
Default can't set volume of speaker player on CDMA devicesThe normal code to set the speaker

Please Login to Remove!

The normal code to set the speaker volume, which works on GSM devices is not working on CDMA devices.

Code:
VolumeControl volumeControl = (VolumeControl)this.player.getControl( "VolumeControl" );
if( volumeControl != null )
  volumeControl.setLevel( 20 );
I have used values from 1 to 99 (the documented range is 0 to 100) and the volume of the player does not change on CDMA phones. I should mention that I'm using the new voipmode=true setting, so I have the microphone player started as well as the speaker. You might have guessed, the OS being used is 6.0.

When the setLevel method executes, the playerUpdate() method is called by the player with arguments stating that the volume was set to the value I gave as the setLevel argument. None the less the level of the sound played does not change.

By the way, I looked to see if the microphone had a VolumeControl (much like you have to set the audio path for the speaker by setting it on the microphone player) but alas, the microphone does not have a VolumeControl.

So how do I set the volume in CDMA devices running OS 6.0?

Thanks,
Paul
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: can't set volume of speaker player on CDMA devicesThe normal code to set the speaker
Thread Thread Starter Forum Replies Last Post
Use your Pearl as a BT Modem under OS X ggoodale Mac Users Corner 250 04-27-2011 09:11 PM
Playing Video in BlackBerry. hvphuong Developer Forum 4 06-30-2009 02:06 AM
OS 4.1.0.529/4.1.0.377 - Release Notes and Known Issues jibi General Legacy Device Discussion 19 02-26-2007 07:52 PM


Vintage Commodore 64/28 Computer Model C2N Cassette Datassette With Box picture

Vintage Commodore 64/28 Computer Model C2N Cassette Datassette With Box

$34.99



POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear 15J261 picture

POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear 15J261

$47.68



MCR 6003X2 Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE 2XL picture

MCR 6003X2 Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE 2XL

$14.99



2 Bridgeport C-64 1-1/4 Malleable C Conduit Body picture

2 Bridgeport C-64 1-1/4 Malleable C Conduit Body

$70.00



Phoenix Contact SKBI 64/C64 Card Holder SKBI64/C64 3348014-0 2263036 (TSC) picture

Phoenix Contact SKBI 64/C64 Card Holder SKBI64/C64 3348014-0 2263036 (TSC)

$22.99



New Commodore 600J Heavy Duty Rain Coat Men Large Yellow PVC/Nylon picture

New Commodore 600J Heavy Duty Rain Coat Men Large Yellow PVC/Nylon

$13.49







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.