[alsa-devel] Definition of frame

Bankim Bhavsar bankim.bhavsar at gmail.com
Wed Oct 29 07:19:44 CET 2008


I want to clarify my understanding regarding the definition of frame
in Alsa lingo.

For a "stereo" DAC channel with 16-bit samples, number of bytes per
frame = 4 bytes, correct?
basically L & R samples each 16 bit, 16 * 2 = 32 bits = 4 bytes.

Reason being alsa-lib APIs use number of frames instead of bytes and I
want to make sure I compute right number of frames.

Thanks,
Bankim


More information about the Alsa-devel mailing list