PC Review


Reply
Thread Tools Rate Thread

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

 
 
xucheng
Guest
Posts: n/a
 
      14th Jun 2004
1, To fix RecordFor BUG , change code to :

m_recBufferSize = (int)(Math.Min( (int)Seconds, BufferLen ) *
m_recformat.AvgBytesPerSec);

// for ( int i = 0; i < 2; i ++ )
// {
WaveHeader hdr = GetNewRecordBuffer( m_recBufferSize );

// send the buffer to the device
CheckWaveError(Core.waveInAddBuffer(m_hWaveIn, hdr.Header,
hdr.HeaderLength));
// }


2, To fix Player BUG , change code to :

private void RefillPlayBuffers()
{
while( m_qBuffers.Count < MaxBuffers )
{
int cb = (int)(BufferLen * m_format.AvgBytesPerSec);

.......
}


--
Best Regards,
Super486
MCSE , MCDBA , CCNA , MCAD.NET


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenNETCF.Multimedia.Audio.Recorder recording at 8khz Razvan Dragomirescu Microsoft Dot NET Compact Framework 1 22nd Jul 2004 11:30 PM
BUG in OpenNETCF.Multimedia.Audio.Player.Volume xucheng Microsoft Dot NET Compact Framework 0 11th Jun 2004 08:02 AM
BUG in OpenNETCF.Multimedia.Audio.Recorder.RecordFor function xucheng Microsoft Dot NET Compact Framework 1 9th Jun 2004 10:38 PM
OpenNETCF.Multimedia.Player problem Lloyd Dupont Microsoft Dot NET Compact Framework 2 23rd Apr 2004 02:21 AM
OpenNETCF.Multimedia.Audio Example Paul Microsoft Dot NET Compact Framework 0 28th Dec 2003 12:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 AM.