[alsa-devel] [PATCH TINYCOMPRESS 1/14] compress: Add function to get timestamp in samples
Vinod Koul
vinod.koul at intel.com
Mon Feb 11 07:34:48 CET 2013
On Sun, Feb 10, 2013 at 12:02:27AM +0000, Richard Fitzgerald wrote:
> 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 struct snd_compr_tstamp.
I am fine with adding new API for returning the samples, but then why return the
raw struct. Would make sense to just get samples if that is only thing desired.
Let users use whatever field that want, samples or time.
--
~Vinod
More information about the Alsa-devel
mailing list