rem: ASSERT(channel <= count_nonzero_bits(all_channel_masks));
add: if (all_channel_masks == 0) { debugger("Mixer: GetChannelMask: all_channel_masks == 0\n"); return 0; } if (channel > count_nonzero_bits(all_channel_masks)) { debugger("Mixer: GetChannelMask: channel > count_nonzero_bits(all_channel_masks)\n"); return 0; }
context: GetChannelMask(int channel, uint32 all_channel_masks){	ASSERT(channel <= count_nonzero_bits(all_channel_masks));	uint32 mask = 1;	int pos = 0;	for (;;) {		while ((all_channel_masks & mask) == 0)			mask <<= 1;		if (pos == channel)			return mask;		pos++;		mask <<= 1;		if (mask == 0)			return 0;	}}