StringForChannelMask
# define PRINT_CHANNEL_MASK(fmt) do { char s[200]; StringForChannelMask(s, (fmt).u.raw_audio.channel_mask); printf(" channel_mask 0x%08" B_PRIX32 " %s\n", (fmt).u.raw_audio.channel_mask, s); } while (0)
return StringForChannelMask(buf, 1 << type);
const char *StringForChannelMask(char *buf, uint32 mask);