本文介绍了怎么把pcm16转换成pcm8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
WAVEFORMATEX in_wfx;
in_wfx.wFormatTag = WAVE_FORMAT_PCM;
in_wfx.nChannels =1;
in_wfx.nSamplesPerSec =8000;
in_wfx.nAvgBytesPerSec =16000;
in_wfx.nBlockAlign =2;
in_wfx.wBitsPerSample =16;
in_wfx.cbSize = 0;
如何将上述形式转换为波纹管形式?
how to convert above form to bellow form?
WAVEFORMATEX out_wfx;
out_wfx.wFormatTag = WAVE_FORMAT_PCM;
out_wfx.nChannels =1;
out_wfx.nSamplesPerSec =8000;
out_wfx.nAvgBytesPerSec =8000;
out_wfx.nBlockAlign =1;
out_wfx.wBitsPerSample =8;
out_wfx.cbSize = 0;
推荐答案
这篇关于怎么把pcm16转换成pcm8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!