[alsa-devel] Sizeof int in Alsa
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
At Wed, 9 May 2012 22:34:20 +0100, Alan Horstmann wrote:
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
participants (2)
-
Alan Horstmann
-
Takashi Iwai