summaryrefslogtreecommitdiffstats
path: root/voip/jni
Commit message (Collapse)AuthorAgeFilesLines
* Enable built-in echo canceler if available.Chia-chi Yeh2011-01-061-3/+7
| | | | | | | 1. Always initialize AudioRecord with VOICE_COMMUNICATION. 2. If echo canceler is available, disable our echo suppressor. Change-Id: Idf18d3833189a8478c1b252ebe6ce55e923280b3
* am dc78e3fe: am 3cf71376: RTP: Send silence packets on idle streams for ↵Chia-chi Yeh2011-01-041-32/+48
|\ | | | | | | | | | | | | every second. * commit 'dc78e3fe7f2ffbc810cd54e86e3a83e279d74984': RTP: Send silence packets on idle streams for every second.
| * RTP: Send silence packets on idle streams for every second.Chia-chi Yeh2011-01-041-32/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | Originally a stream does not send packets when it is receive-only or there is nothing to mix. However, this causes some problems with certain firewalls and proxies. A firewall might remove a port mapping when there is no outgoing packet for a preiod of time, and a proxy might wait for incoming packets from both sides before start forwarding. To solve these problems, we send out a silence packet on the stream for every second. It should be good enough to keep the stream alive with relatively low resources. Bug: 3119690 Change-Id: Ib9c55e5dddfba28928bd9b376832b68bda24c0e4
* | Merge "RTP: Prepare to unhide the APIs."Chia-chi Yeh2010-11-302-13/+7
|\ \
| * | RTP: Prepare to unhide the APIs.Chia-chi Yeh2010-12-012-13/+7
| | | | | | | | | | | | | | | | | | Polish things a little bit. Change-Id: I2c3cea8b34b9c858879bc722ea1f38082ba22b8d
* | | am e843dfa8: am bd399b0b: Merge "RTP: Pause echo suppressor when far-end ↵Chia-chi Yeh2010-11-301-8/+13
|\ \ \ | |/ / |/| / | |/ | | | | | | volume is low." into gingerbread * commit 'e843dfa8dcd0a7bfa956b75424bb5db834975a64': RTP: Pause echo suppressor when far-end volume is low.
| * RTP: Pause echo suppressor when far-end volume is low.Chia-chi Yeh2010-10-271-8/+13
| | | | | | | | | | Bug: 3136725 Change-Id: Ieeedd2836d3028045aacac963f44285491708cc3
* | am 044fcd64: am 703aae06: Merge "RTP: Fix non-zero DC in EchoSuppressor ↵Chia-chi Yeh2010-10-213-104/+128
|\ \ | |/ | | | | | | | | | | | | | | caused while aggregating samples." into gingerbread Merge commit '044fcd64fe999dca0f986dfce9cb3b5b1da77f44' * commit '044fcd64fe999dca0f986dfce9cb3b5b1da77f44': RTP: Fix non-zero DC in EchoSuppressor caused while aggregating samples.
| * RTP: Fix non-zero DC in EchoSuppressor caused while aggregating samples.Chia-chi Yeh2010-10-223-104/+128
| | | | | | | | | | | | | | | | Rewrite using integer arithmetic to get full 32-bit precision instead of 23-bit in single precision floating-points. Bug: 3029745 Change-Id: If67dcc403923755f403d08bbafb41ebce26e4e8b
* | am 4b7ff734: am 4483232f: Suppress harder for echo without affecting the ↵Chung-yih Wang2010-10-101-1/+2
|\ \ | |/ | | | | | | | | | | | | | | volume of real voice. Merge commit '4b7ff734611666a68471c97fabb6f516efab25cd' * commit '4b7ff734611666a68471c97fabb6f516efab25cd': Suppress harder for echo without affecting the volume of real voice.
| * Suppress harder for echo without affecting the volume of real voice.Chung-yih Wang2010-10-081-1/+2
| | | | | | | | Change-Id: Ia3ce98eedd487a9e879ff0a4907b8c15b5707429
* | resolved conflicts for merge of 4790a2e2 to masterChung-yih Wang2010-10-092-1/+2
|\ \ | |/ | | | | Change-Id: I659ccd9a51e24f217f715178a98eaf6592c258d7
| * Misc fixes for sim-eng build.Chung-yih Wang2010-10-062-1/+2
| | | | | | | | Change-Id: I0c5dac1097abc924e66dab92d7d03d5051b4fd29
* | Fix simulator build, part 1/nMarco Nelissen2010-10-062-1/+2
|/ | | | Change-Id: If0a42ab262ee6aa6381ce95bd49baf232adb01c5
* RTP: Add a baseline echo suppressor.Chia-chi Yeh2010-10-054-2/+228
| | | | Change-Id: I832f1f572f141fd928afe671b12d0b59f2a8e0b1
* RTP: Start AudioRecord before AudioTrack to avoid being disabled.Chia-chi Yeh2010-10-011-14/+13
| | | | Change-Id: I96be89fda41d77e2cf5bfc1c2f14e2b109001b57
* RTP: Minor fixes with polishing.Chia-chi Yeh2010-09-303-19/+20
| | | | Change-Id: I50641373989e512fb489b5017edbcfd7848fe8b9
* RTP: Adjust the jitter buffer to 512ms.Chia-chi Yeh2010-09-301-23/+35
| | | | Change-Id: Ia91c1aa1a03b65dbd329ea98383f370844e2b0c0
* RTP: Enable AMR codec.Chia-chi Yeh2010-09-302-0/+173
| | | | Change-Id: I49e6bdc1b67306b44173f2f346f8372a50264870
* RTP: Enable GSM-EFR codec.Chia-chi Yeh2010-09-303-2/+109
| | | | Change-Id: I9d84009e4557a0a82c1f9d7d543922741be97c77
* RTP: Revise the workaround of private addresses and fix bugs.Chia-chi Yeh2010-09-301-27/+24
| | | | Change-Id: Ie654b569f47049aa452eca8d3e6d4a98ac18469c
* Merge changes Iae1913fb,I38dbefef into gingerbreadChia-chi Yeh2010-09-284-122/+223
|\ | | | | | | | | | | * changes: RTP: Enable GSM codec. RTP: Refactor out G711 codecs into another file.
| * RTP: Enable GSM codec.Chia-chi Yeh2010-09-293-3/+83
| | | | | | | | Change-Id: Iae1913fb0643f1c66b5d16f24d51924d363e5ef5
| * RTP: Refactor out G711 codecs into another file.Chia-chi Yeh2010-09-293-120/+141
| | | | | | | | Change-Id: I38dbefef2315a28d44683e86a51e69f38e3f20ec
* | RTP: Delay the initialization of AudioTrack and AudioRecord.Chia-chi Yeh2010-09-291-133/+123
|/ | | | | | Related to http://b/3043844. Change-Id: I2c4fd9f64e6eba597d68b2ea1ceeff83103697db
* Fix the unhold issue especially if one is behind NAT.Chung-yih Wang2010-09-271-2/+27
| | | | | | +call startAudio() when call is established. Change-Id: Ib6a1e34017fb83007ce275da1991058e8b803833
* RTP: Add log throttle for "no data".repo sync2010-09-231-1/+5
| | | | Change-Id: I14d9886a40fa780514cbc6c5bac6fb2a670f55f4
* RTP: Update native part to reflect the API change.Chia-chi Yeh2010-09-233-39/+48
| | | | Change-Id: Ic2858920ad77d7312f2429f89ca509a481363431
* RTP: prevent buffer overflow in AudioRecord.Chia-chi Yeh2010-09-081-2/+2
| | | | | | | | This change simply reduces the receive timeout of DeviceSocket. It works because AudioRecord will block us till there is enough data, which makes AudioSocket overlap AudioRecord. Change-Id: I4700224fb407e148ef359a9d99279e10240128d0
* Revert "RTP: integrate the echo canceller from speex."Chia-chi Yeh2010-08-262-18/+6
| | | | This reverts commit 4ae6ec428f3570b9020b35ada6a62f94af66d888.
* RTP: integrate the echo canceller from speex.Chia-chi Yeh2010-08-242-6/+18
| | | | | | | Currently the filter_length is set to one second. Will change that when we have a better idea. Change-Id: Ia942a8fff00b096de8ff0049a448816ea9a68068
* RTP: reduce the latency by overlapping AudioRecord and AudioTrack.Chia-chi Yeh2010-08-241-28/+53
| | | | Change-Id: I00d750ee514ef68d5b2a28bd1893417ed70ef1fc
* RTP: fix few leaks when fail to add streams into a group.Chia-chi Yeh2010-08-191-10/+13
| | | | Change-Id: Iefb3fe219ad48641da37a83c8d14e9ebf1d3086c
* RTP: remove froyo-compatible code.Chia-chi Yeh2010-08-181-74/+0
| | | | Change-Id: I6822a4e4749a5909959658c29253242b4018aeb0
* RTP: move into frameworks.Chia-chi Yeh2010-08-067-0/+1464
Change-Id: Ic9c17b460448c746b21526ac10b647f281ae48e9