Hello , Sam Thank you for your reply. I tried to use Microsoft Sound Recorder. The scratchy sound occurs. As you say, the problem is in my driver. My driver has no hardware. I use MSVAD simple driver sample program. When I Allocate DmaBuffer, I set 440Hz PCM data to it. I override CopyTo functin and do nothing in it. Instead I add CopyFrom. Then when CopyFrom is called, I simply copy from the 440Hz PCM data. I don't modify about data output except this. I don't know why the data becomes lack and how I get the state. Thank you. Best regards. Hirokazu Iwashita ----- Original Message ----- From: "Sam Tertzakian" <sam@xxxxxxxxxxx> To: <wdmaudiodev@xxxxxxxxxxxxx> Sent: Friday, July 09, 2004 4:25 AM Subject: [wdmaudiodev] Re: MSVAD capture driver problem > It sounds as if the device is being starved for data when the computer is > very busy. > > Is your device interrupt driven or are you using polling? If polling, then > you may have increase the priority of the thread or reorganize how the > polling is done. If interrupt driven, you may have other problems. > > Also, I would try to use Microsoft Sound Recorder (in Accessories) to > determine if the problem is an application problem or a driver problem. > > If you use Sound Recorder and the problem goes away, then the problem is in > your application. If not, then the problem is probably in your driver. > > If the problem is in the driver, then write out to the log every time you > write data to the card. Then you can analyze to see if you are actually > writing enough data at all times. > > So, in summary, you should determine if the problem is in the app or driver. > Then, should prove that you are not starving the card. > > -----Original Message----- > From: wdmaudiodev-bounce@xxxxxxxxxxxxx > [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of ?? ?? > Sent: Thursday, July 08, 2004 10:40 AM > To: wdmaudiodev@xxxxxxxxxxxxx > Subject: [wdmaudiodev] MSVAD capture driver problem > > Hello. > > I have a problem. Hope you can help me. > > I created the audio capture driver based on DDK's sample MSVAD. > I implemented CopyFrom() to let it work as a capture driver. > The driver outputs 440Hz sound which is PCM data 22.05kHz 16bits stereo. > Also I created the DirectShow application. > The application uses my driver as capture filter and renders the sound. > > Mostly my driver works fine. > However when I start TaskManager, VolumeControl or IE in WinXP, > the sound becomes scratchy or distorted. > When virus scan also runs, it occurs. > In a short time, it goes back. > On investigation, it seems that it doesn't occur in Win2K. > > The sound is heard like the sample data shifts 1 byte. > And just before the state, the driver becomes pause state a little while. > > What happens in my driver ? > How can I prevent my driver from going to this state ? > > Best Regard, > Hirokazu Iwashita > > > > > > > ****************** > > WDMAUDIODEV addresses: > Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx > Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe > Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe > Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx > > URL to WDMAUDIODEV page: > http://www.wdmaudiodev.de/ > > ****************** > > WDMAUDIODEV addresses: > Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx > Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe > Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe > Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx > > URL to WDMAUDIODEV page: > http://www.wdmaudiodev.de/ > ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.de/