Problem with WaveIn in P/Invoke Example

  • Thread starter Thread starter Aziz Vasi via DotNetMonster.com
  • Start date Start date
A

Aziz Vasi via DotNetMonster.com

Hi,
I have downloaded the P/Invoke Library Sample from MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dnnetcomp/html/waveinout.asp

I am deploying the program on Pocket PC 2002 Emulator. I am facing the
following problems:

WaveIn Test:
It gives the following error when I click on Run Test:
FAILURE: Failed to detecte end of Sound

WaveOut Test:
The first time when I click on Run Test it plays test.wav. If i press it
again after it finishes it also gives the same error
FAILURE: Failed to detecte end of Sound

Is there a problem with the code, or is it because I am using the emulator?
Does an emulator allow voice input from a microphone?

Your answers will be appreciated,

Aziz Vasi
 
I would like to add that:

THe WaveIn test works fine if I use it first before the WaveOut test. It
says "Saving file test.wav"
Now if I want to play this test.wav I run the WaveOut test. It gives the
following error:

FAILURE: Falied to detecte end of sound


Aziz
 
Back
Top