OSDN Git Service

libaah_rtp: address http://b/issue?id=5755419
authorJohn Grossman <johngro@google.com>
Mon, 9 Jan 2012 18:15:50 +0000 (10:15 -0800)
committerJohn Grossman <johngro@google.com>
Mon, 9 Jan 2012 20:23:37 +0000 (12:23 -0800)
commit7ef85ef8fc2792b019b4c9b9559f652c7ecda029
tree25d13136c54881a742befabe4bcfd0aad96dd21b
parentfee28f6229866f26c7ef857e7f49f76c1ddd867b
libaah_rtp: address http://b/issue?id=5755419

Introduce a heartbeat timeout for TX senders.  If none of the TX
sender's clients send any packets for this timeout period (10 minutes
right now), then the sender will stop sending keep-alive heartbeats.
This should cause RX clients to release any held media resources,
including any timed audio track.  Releasing timeed audio tracks allows
the audio system to go into its idle state, which allows the power amp
in Tungsten to power all of the way down, saving both heat and power.

Change-Id: Ib7a96d334e1064ddea3f07a6b21e6efedefc549a
Signed-off-by: John Grossman <johngro@google.com>
media/libaah_rtp/aah_tx_sender.cpp
media/libaah_rtp/aah_tx_sender.h