Skip to contentSkip to conversation

Sizeof int in Alsa

DISCUSSION Alan Horstmann 2 participants 2 messages May 9, 2012 – May 10, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I have often wondered whether Alsa had an intrinsic requirement that an int would always be at least 32-bit, but been unable to find a clear statement with web searches.

Looking recently at snd_pcm_hw_params_set_rate(), for example, the rate value parameter is unsigned int, which suggests to me that it would be broken with 16-bit ints; is it correct then to deduce that Alsa does not support 16-bit int platforms?

Regards,

Alan

#1 lore raw

At Wed, 9 May 2012 22:34:20 +0100,

Quoted 11 lines · Alan Horstmann

Hi,

I have often wondered whether Alsa had an intrinsic requirement that an int would always be at least 32-bit, but been unable to find a clear statement with web searches.

Looking recently at snd_pcm_hw_params_set_rate(), for example, the rate value parameter is unsigned int, which suggests to me that it would be broken with 16-bit ints; is it correct then to deduce that Alsa does not support 16-bit int platforms?

Right. Linux itself doesn't support 16bit int, so neither ALSA does.

Takashi