OSDN Git Service

android/hal-audio: Write and sync in common code
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Mon, 3 Mar 2014 08:56:40 +0000 (09:56 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Tue, 4 Mar 2014 09:26:37 +0000 (10:26 +0100)
commit97293ba74d8fb2989a3cad1812e6e8d6ad8b1c7f
tree8ff73eb8575a0f5c277d9f7942b743196883bda2
parent7f2fc02e7fc2a3e77e0027f296a0e88e6b3b3d98
android/hal-audio: Write and sync in common code

There's no need for codec abstraction to take care of writing and
synchronizing actual media stream since this is something that common
code can do regardless of codec used.

Data are synchronized based on number of samples consumed from input
stream instead of frames encoded to output stream which is also more
reliable since it's not affected by encoder errors.
android/hal-audio.c