src/org/sipdroid/media/RtpStreamReceiver.java
changeset 830 c8b4ace735ea
parent 826 8649e502be0e
child 834 e8d6255306f8
equal deleted inserted replaced
829:f703b3e14f9a 830:c8b4ace735ea
    56 
    56 
    57 	/** Maximum blocking time, spent waiting for reading new bytes [milliseconds] */
    57 	/** Maximum blocking time, spent waiting for reading new bytes [milliseconds] */
    58 	public static final int SO_TIMEOUT = 200;
    58 	public static final int SO_TIMEOUT = 200;
    59 
    59 
    60 	/** The RtpSocket */
    60 	/** The RtpSocket */
    61 	//RtpSocket rtp_socket = null;
       
    62 	RTPSession rtpSession = null;
    61 	RTPSession rtpSession = null;
    63 	byte[] buffer;
    62 	byte[] buffer;
    64 
    63 
    65 	/** The codec */
    64 	/** The codec */
    66 	private Codec codec;
    65 	private Codec codec;
   332 				}
   331 				}
   333 				lserver = server;
   332 				lserver = server;
   334 				System.arraycopy(lin, 0, lin2, 0, REAL_BUFFER_SIZE);
   333 				System.arraycopy(lin, 0, lin2, 0, REAL_BUFFER_SIZE);
   335 			}
   334 			}
   336 		}
   335 		}
   337 		println("POOL SIZE " + DatagramPool.getInstance().getPoolSize());
       
   338 		track.stop();
   336 		track.stop();
   339 		//if (Receiver.pstn_state == null || Receiver.pstn_state.equals("IDLE"))
       
   340 		//	am.setMode(AudioManager.MODE_NORMAL);
       
   341 		//saveVolume();
       
   342 		//am.setStreamVolume(AudioManager.STREAM_MUSIC,oldvol,0);
       
   343 		//restoreSettings();
       
   344 		ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_RING,ToneGenerator.MAX_VOLUME/4*3);
   337 		ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_RING,ToneGenerator.MAX_VOLUME/4*3);
   345 		tg.startTone(ToneGenerator.TONE_PROP_PROMPT);
   338 		tg.startTone(ToneGenerator.TONE_PROP_PROMPT);
   346 		try {
   339 		try {
   347 			Thread.sleep(500);
   340 			Thread.sleep(500);
   348 		} catch (InterruptedException e) {
   341 		} catch (InterruptedException e) {