11 Feb
2013
11 Feb
'13
7:34 a.m.
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