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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top