]> git.alsa-project.org Git - tinycompress.git/commit
compress: Add function to get timestamp in samples
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 15:56:18 +0000 (15:56 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 22 Feb 2013 18:08:12 +0000 (23:38 +0530)
commit0d20d8bca2babf051db11a0ca47bf7485801f8e0
tree3ca4850cb2f94448a82215f7210fdf17e8d6464a
parent09318702910e4503cff552a0fef1b13210342483
compress: Add function to get timestamp in samples

The compress_get_hpointer() converts the timestamp into actual
time. But Android needs it in samples. To avoid the inefficiency
of using compress_get_hpointer() and converting into time and then
back into samples, this change adds compress_get_tstamp() which
returns the raw sample count.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c
include/tinycompress/tinycompress.h