X
xucheng
If you use Stereo recording in wince. you will face this problem .
see this line :
m_recformat.AvgBytesPerSec = m_recformat.SamplesPerSec *
m_recformat.Channels;
when it is Stereo , m_recformat.AvgBytesPerSec should be double .
Change code to :
m_recformat.AvgBytesPerSec = m_recformat.SamplesPerSec *
m_recformat.Channels * m_recformat.BitsPerSample / 8;
see this line :
m_recformat.AvgBytesPerSec = m_recformat.SamplesPerSec *
m_recformat.Channels;
when it is Stereo , m_recformat.AvgBytesPerSec should be double .
Change code to :
m_recformat.AvgBytesPerSec = m_recformat.SamplesPerSec *
m_recformat.Channels * m_recformat.BitsPerSample / 8;