/* Returns 1 if the given PCM format is big-endian, 0 if little-endian, or a negative error code if endian not specified.  */
int snd_pcm_format_big_endian(snd_pcm_format_t format)
/* Returns 1 if the given PCM format is big-endian, 0 if little-endian, or a negative error code if endian not specified.  */
int snd_pcm_format_big_endian(snd_pcm_format_t format)
{
	int val;
	val = snd_pcm_format_little_endian(format);
	if (val < 0)
		return val;
	return !val;
}