Your Very Own Mosquito

St0le

The Funny One
[OP]
Regulars
Dec 3, 2005
761
6
Well, ever since the media has been reporting the "teenbuzz" ringtone...i wondered if it really worked...

So i tried to recreate the effect on our very own computer...

a c++ program...

#include

int main(void)
{

sound(12900); //change the frequency
delay(1000);
nosound();
return 0;
}
[/b]

the program generates a "beep" for one second of the given frequency...(The CPU beeps not your speakers...)

if your over 30 you'll not be able to hear it...hahahaha...

my parents could hear below 12900....

i hope you guys can compile? :blink: :mellow: :unsure:
have fun...:)
 

max

Regulars
Regulars
Oct 6, 2005
2,766
6
ewww....i cant compile it. It's not POSIX complaint :p.
 


netfreak

Regulars
Regulars
Sep 8, 2005
2,147
14
Internal speaker is tied to the buffered output of the 8254 timer chip on all PCs. Output of the 8254 timer is further latched through port 61h. Just replace "sound" function with ASM block that wites this value to 61h. And replace "delay" with spin locks.Now you have a ringtone that will compile and run on DOS,Windows,Linux,Solaris,Mac OS,BSD..... as long as it is on x86 :)
 

blr_p

Regulars
Regulars
May 26, 2005
3,934
13
Not very effective from what i've read around the net. In other wrds *BOGUS* but you can't stop the gullible.

If you really want to keep mosquitoes away use DEET. But its not healthy in the long run :( so most effective consumer varieties have maybe 10-30% DEET in them.

I recall reading about this ultrasound repeller in the TOI some time back, which prompted a googe search. Shame on whomever reported it, must have been on the take for whoever is selling this shit. That's another thing you got to watch out for nowadays, so called informative articles that are no better than infomercials.
 

Similar threads