[alsa-devel] [PATCH TINYCOMPRESS 1/14] compress: Add function to get timestamp in samples

Richard Fitzgerald rf at opensource.wolfsonmicro.com
Tue Feb 19 18:24:29 CET 2013


>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.

Is there a need to hide the underlying ALSA structs from a client of tinyalsa?
If so, why?

Might other fields in snd_compr_tstamp be useful to the client? If so it's cleaner
to just return them all instead of having to spawn several different functions the
client has to call to get a snd_compr_tstamp and then return each field separately.

If snd_compr_tstamp is basically useless to any tinycompress client except for
the value of pcm_io_frames (and maybe sampling_rate?) then I'm ok with just
returning those instead of the raw snd_compr_tstamp.


More information about the Alsa-devel mailing list