[alsa-devel] pcm_rate API question

Clemens Ladisch clemens at ladisch.de
Fri Sep 27 14:38:23 CEST 2013


Rob Sykes wrote:
>         void (*convert_s16)(void *obj, int16_t *dst, unsigned int dst_frames,
>                             const int16_t *src, unsigned int src_frames);
>
> is the plugin obliged always to consume src_frames and generate dst_frames samples?

Yes.  src_frames and dst_frames are the period sizes of the respective
devices; their values will never change, and they define the actual
conversion ratio.


Regards,
Clemens


More information about the Alsa-devel mailing list