Skip navigation
Ankit_Gupta
Currently Being Moderated

Voice chat Problem in Peer to Peer Application

Feb 1, 2013 4:39 AM

Hi i am working on Peer to Peer chat Application, when i do one to one voice chat or multiple voice chat, it doesn't work, I mean to say sometime other's can listen my voice and vise a versa, but sometime my voice gets break or cut off   might be due to streaming problem or something else i don't know?? what is the problem not getting it.

Here is the code for my microphone which i have used

 

                                        _mic = Microphone.getMicrophone();

 

                                        Security.showSettings(SecurityPanel.MICROPHONE);

                                        try {

 

                                                  _mic.setUseEchoSuppression(true);

                                                  _mic.setLoopBack(false);

                                                  _mic.gain=50;

                                                  _mic.rate=11;

                                                  _mic.codec = SoundCodec.NELLYMOSER;

                                                  _mic.setSilenceLevel(0, 4000);

 

                                              } catch (e:Error) {

                                                  trace("no mic detected")

                                        }

 

Thanks in Advanced

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points