Solved

# produce sound in delphi

Posted on 2007-10-15
162 Views
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
0
Question by:hidrau

LVL 19

Accepted Solution

0

LVL 1

Author Comment

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.

0

LVL 1

Author Comment

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

LVL 19

Expert Comment

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

hm but how to test it ;)
0

LVL 1

Author Comment

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
0

LVL 19

Expert Comment

0

LVL 19

Expert Comment

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 ;)

0

LVL 1

Author Comment

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

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

0

## Featured Post

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.