OSDN Git Service

android/hal-audio: Provide better audio synchronization
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Mon, 3 Mar 2014 08:56:42 +0000 (09:56 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Tue, 4 Mar 2014 09:26:37 +0000 (10:26 +0100)
commit3eb9a5f61d94dfa86bb0f13f9f7e977d7c0ebaa1
tree5c93fd89e1665b3f0823e371b68c20a222414ad7
parentfe16c25b4b6be57f9443ab825dcdc77cfb8748b2
android/hal-audio: Provide better audio synchronization

Instead of waiting some fixed amount of useconds before next media
packet is encoded we use absolute time to wait precisely for a moment
when next packet is expected to be produced. This greatly improves flow
as is can compensate for time spent on encoding and writing data.
android/hal-audio.c