Changes between Initial Version and Version 1 of Ticket #323
- Timestamp:
- Jun 6, 2007 3:01:59 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #323 – Description
initial v1 1 1 !ChenHuan sent this code to the list on 2007/05/06, along with this mail: 2 2 {{{ 3 Currently, it only uses PCMA & PCMU codec, and the quality of the voice on Windows Mobile is almost as good as on PC's 3 Currently, it only uses PCMA & PCMU codec, and the quality of the 4 voice on Windows Mobile is almost as good as on PC's 4 5 5 6 These are the key points I conclude: 6 7 7 1. I did not use the speaker thread to stimulate the sending of RTP packets, but used another clock thread. There are many methods to achieve this, but my method is to change the file : conference.c. The advantage is that we have not to modify other files including the program on PJSIP. 8 1. I did not use the speaker thread to stimulate the sending of RTP 9 packets, but used another clock thread. There are many methods to 10 achieve this, but my method is to change the file : conference.c. 11 The advantage is that we have not to modify other files including 12 the program on PJSIP. 8 13 9 I added a pjmedia_clock and a speaker thread buffer member into struct conf_port. Particularly, the speaker buffer is similar to the mic thread buffer. The function get_frame just only reads frames from the speaker buffer, and leaves other things to the clock_callback function. 14 I added a pjmedia_clock and a speaker thread buffer member into 15 struct conf_port. Particularly, the speaker buffer is similar to the 16 mic thread buffer. The function get_frame just only reads frames 17 from the speaker buffer, and leaves other things to the 18 clock_callback function. 10 19 11 20 The attachment is my conference.c 12 21 13 22 2. Don't use any ACE 14 Simple ACE is not recommended, because it will cause the outgoing voices quite instable, which means the volume of the sound alternates between low and high. Whether you use the default PJMEDIA_ECHO_SUPPRESS_FACTOR 4 or 2, it did't work out. 23 Simple ACE is not recommended, because it will cause the outgoing 24 voices quite instable, which means the volume of the sound 25 alternates between low and high. Whether you use the default 26 PJMEDIA_ECHO_SUPPRESS_FACTOR 4 or 2, it did't work out. 15 27 16 Also the normal ACE algorithm is too costly for my device, I have to give it up 28 Also the normal ACE algorithm is too costly for my device, I have to 29 give it up 17 30 18 31 So, I suggest that ACE should be disabled on Windows Mobile … … 21 34 #define PJMEDIA_ECHO_SUPPRESS_FACTOR 1 22 35 23 After doing the two steps above, the quality of the voice will improved a lot, 24 and if you feel the quality is very bad when calling PSTN phones, maybe the following method will help 36 After doing the two steps above, the quality of the voice will 37 improved a lot, and if you feel the quality is very bad when calling 38 PSTN phones, maybe the following method will help 25 39 26 40 3. Change the jitter buffer's parameters when necessary