Voice

  • Thread starter Thread starter Woojtos
  • Start date Start date
W

Woojtos

Hi,

I've got question:
How to get any sounds from microphone and play them using the speakers?

Thanks in advance
 
Hi
To simply play sound , you can use the playsound function of the winmm.dll
.. first use the DllImport attribute , define a prototype for playsound
[DllImport("winmm.dll", EntryPoint="PlaySound")]
public static extern bool PlaySound_DllImport(string
pszSound,IntPtr hmod ,int fdwSound );
then you can call that function later on a wave file
PlaySound_DllImport("c:\\1.wav",resourceHandle,0);
If you want to do complex audio operations however , you can use the
directX SDK
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.as
p
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top