|
From: | aleksei drassen |
Subject: | RE: [Linphone-developers] linphone blackberry error 523 on device |
Date: | Thu, 10 Feb 2011 23:17:08 +0000 |
Capturing in pcm and playing in x-wav converting x-wav to pcm. (i'm not implemented yet but i test that separately) xwav.setAudioParameters( 7, // pcmu 1, 8000, 8000, 1, 8 ); String [] formats=Manager.getSupportedContentTypes(null); player=Manager.createPlayer(rawData,"audio/x- player.realize(); Control [] controls=player.getControls(); AudioFormatControl control=(AudioFormatControl)player.getControl("Aud player.prefetch(); player.start(); See this project is only i found respect ulaw allaw in java :( http://www.koders.com/java/fid444590AFD6608DE4ED155F726DE3CCC89CC5A859.aspx?s=196 the patch to the error is: AudioStreamImpl.java: changing this: mSendStream=new SendStream(mSession); mSendStream.start();
for those: Thread lTmpThread = new Thread(new Runnable(){ public void run() { mSendStream=new SendStream(mSession); mSendStream.start(); }}); lTmpThread.start(); Into SendStream.java try { mSession.sendPacket(packet, mTs); } catch (RtpException e) {Thread.sleep(30); sLogger.disableLogLevel(1);//sLogger.error("Fail to send RTP packet",e); } ... so, i need only port the encoder/decoders in java respect the rfc implementations who are only in c/c++ :p P.D. Please change the "duration time" on the call for this, you forget multiply for 60 :p in the timertask on the DialerField.java: mDurationField.setText(mDuration/60+":"+(mDuration - ((mDuration/60)*60))+"s" ); cheers From: address@hidden Subject: Re: [Linphone-developers] linphone blackberry error 523 on device Date: Thu, 10 Feb 2011 08:25:28 +0100 To: address@hidden Hi, Well done Aleksei. You might want to contribute your patch ;-)
Regarding pcmu/pcma, we didn't implement those two codecs because we where not able to both capture and play PCM16 audio but AMR-NB only. Did you managed that ?
Cheers
_______________________________________________ Linphone-developers mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/linphone-developers |
[Prev in Thread] | Current Thread | [Next in Thread] |