BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 01-29-2011, 11:09 AM   #1 (permalink)
New Member
Join Date: Jan 2011
Model: 9800
Carrier: Verizon
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with recording and playing volumeOptionsOptions

Please Login to Remove!

Hi, All

I am having a really wierd problem when recording and playing at the same time. I have two threads:
a recording thread that record signal from MIC in the format of WAV.
a playing thread that play sound to both left and right sound channels.

If I just run the playing thread with maximum sound (volume=100), I can hear the sound playing loud. Now if I start the recording thread, the playing sound suddenly drop to half (or even less) of the original volume. Plus, only one ear piece has sound. the other one just turn silent

I did some debugging and found that the RecordControl of the recording thread seem to be the problem. Once it started, the sound volume dropped.

How can the recording functionality affect the playing sound? It only read data from MIC, and should not interfere the output from sound channels.

my recording thread is something like this

_player ="cap ture://audio?encoding=pcm&rate=8000&bits=16&channels=1");


// VolumeControl _volume = (VolumeControl)_player.getControl("VolumeControl") ;
// _volume.setLevel(100);

recordingByteOut = new ByteArrayOutputStream ();
_recordControl = (RecordControl) _player.getControl( "RecordControl" );



My player thread is something like this

con = (FileConnection), Connector.READ);
fis = con.openInputStream();

mediaPlayer =, "audio/X-wav");

VolumeControl volume = (VolumeControl)mediaPlayer.getControl("VolumeContr ol");



Any clues/suggestion will be greatly appreciated Thanks
Closed Thread

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Problem with recording and playing volumeOptionsOptions
Thread Thread Starter Forum Replies Last Post
Help and suggestions needed: 8310 video recording problem haominlu General 8300 Series Discussion - Curve 0 10-15-2009 03:16 AM
Simultaneous recording and playback payel_cse Developer Forum 0 03-11-2009 10:49 PM
Video recording quality lauriem General 9000 Series Discussion - Bold 3 09-01-2008 08:28 PM

1PC CONVUM solenoid valve CVA-15LS24BL
1PC CONVUM solenoid valve CVA-15LS24BL picture1PC SMC solenoid valve SQ2131-5-C6
1PC SMC solenoid valve SQ2131-5-C6 picture1PC Rexroth solenoid valves 0820022013
1PC Rexroth solenoid valves 0820022013 pictureSolenoid, timer kit M16D76
Solenoid, timer kit M16D76 picture1PC SMC solenoid valve SY7240-5YZ-Q
1PC SMC solenoid valve SY7240-5YZ-Q picture

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