By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,456 Members | 1,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,456 IT Pros & Developers. It's quick & easy.

Voice

P: n/a
Hi,

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

Thanks in advance
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/de...ist/directx.as
p
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.