使用mediastreamer2的g711common.h. unsigned char s16_to_alaw(int pcm_val). 将16bit的原始样本encode 成为8bit的a-la 其他 55 K 40 次下载 2015-11-03