linear2ulaw
static unsigned char linear2ulaw(short sample)
static unsigned char linear2ulaw(int pcm_val) /* 2's complement (16-bit range) */