基于Linux 2.6内核ALSA架构的PCM混音demo
摘要:
一个混音例程,多声道混音成单声道,录制下了原始声音和混音之后的声音。混音之后的声音是8kHz,16bit,带符号单声道的声音。#define ALSA_PCM_NEW_HW_PARAMS_API#include <alsa/asoundlib.h>#include <alloca.h>#include <stdio.h>void mixchannel(FILE *fp, const snd_pcm_channel_area_t *areas, unsigned int chs, snd_pcm_uframes_t offset, snd_pcm_uframe 阅读全文
posted @ 2012-10-26 16:44 huyc 阅读(6107) 评论(0) 推荐(0) 编辑