Problem with WaveIn in P/Invoke Example

  • Thread starter Aziz Vasi via DotNetMonster.com
  • 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
 
A

Aziz Vasi via DotNetMonster.com

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
 
A

Alex Feinman [MVP]

I don't believe you can test either playback or recording on the emulator
 

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

Top