BUG in OpenNETCF.Multimedia.Audio.Recorder.RecordFor function

  • Thread starter Thread starter xucheng
  • Start date Start date
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;
 
Back
Top