Parent: 955c88d639aaddd78165f76f65785560e7c56ea8
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-01-23 11:34:19
Tree: 4b09144cdaa35c2c9428c6e761e920508618259d
android/hal-audio: Add proper SBC encoding Input and output stream is configured in a way that each input buffer can be encoded to exactly one output buffer. Reading from AudioFlinger is synchronized based on amounts of frames which were expected to be sent since stream was resumed, i.e. as long as we sent enough data we can wait for period of single media packet before we need another buffer from input. Without synchronization we'd receive next input buffer as soon as we process current one.
Diffstat
| M | android/hal-audio.c | | | 102 | ++++++++++++++++++++++++++++++++++++++++- - - |
1 files changed, 99 insertions(+), 3 deletions(-)