Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

produce sound in delphi

Hello guys

I would like to make a software that could make a sound in hertz to keep away mosquitos.
I did a search and I found some appliances that keep away mosquitos due to the sound.
I know that I can reproduce a sound with my delphi, someone could help me with this?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Limbeck
Limbeck

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

hello, I tested the function to produce sound and I could produce 17000 hertz or 17 khertz.

there is a line  SampleRate: Integer = 44100; // 11025; // 8000, 11025, 22050, or 44100

where I used 44100 to reach a khertz.

Avatar of hidrau

ASKER

Now, I need to know what is the right hertz to make the correct sound to keep away mosquitos :))
Avatar of Limbeck
Limbeck

ha according to that discussion in the 2nd link it should be 20hz.

hm but how to test it ;)
Avatar of hidrau

ASKER

I found a site that informs the sound in hertz, take a look at it

http://www.freemosquitoringtone.com/how-the-mosquito-ringtone-works/

according to the site between 14 to 17 khz
http://www.mosquito.org/mosquito-information/fun-faqs.aspx

ha this site is fun; i need to tell my wife we have to have a blond woman in our room to keep the mosquito's away ;)

Avatar of hidrau

ASKER

:P
I think I will give up to go on with my ideia :))

but thanks for your help

take a look at this http://bugjammer.com/reports/coro/index.htm