Skip to contentSkip to conversation

Definition of frame

DISCUSSION Bankim Bhavsar 1 participant 1 message Oct 29, 2008

lore
Share & tools
lore
#0 lore raw

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