Re:Accoustic weapon in JavaScript
by rwaldron on Thursday May 12, 2011 @01:02PM
(#2541317)
Hey everyone! I wrote this little toy... I'm glad you're all enjoying it.
NOTE: OSX, Chrome dev channel (12.0.733.0 dev is the version I wrote this in) w/ Web Audio API enabled is the only way this is going to work for you. Everyone else will have to wait until the API is implemented in your OS of choice.
Lastly, there are very _real_ dangers of exposure to high frequencies such as: hearing loss, nausea, dizziness and vertigo (to name a few). Running this code is your choice, so handle with care!
Re:Accoustic weapon in JavaScript
by ChuckMcM on Thursday May 12, 2011 @05:20PM
(#2542366)
Having done actual experimentation with weaponized acoustics in college I can assure you that no amount of noise generation on a web page is going to cause harm. Annoyance, yes, harm no.
Now if you're on your gaming rig and you have a 300 - 400 watt subwoofer hooked up, I've got a couple of sound files that can give you cramps :-)
Here is a jsFiddle with the code that actually works, or it would, if I had a browser that supported this that didn't crash the second I tried to do anything with it.
Re:Accoustic weapon in JavaScript
by drgath on Thursday May 12, 2011 @11:51AM
(#2540981)
I ran it on JSFiddle (http://jsfiddle.net/BGW5u/) a few minutes ago, and everything went fine. Though, I now strangely have a craving of human brains for breakfast.
Re:Accoustic weapon in JavaScript
by paulirish on Thursday May 12, 2011 @01:12PM
(#2541364)
It's not available in the stable release. You need to use developer channel Chrome, go to about:flags, enable Web Audio there. Then you can restart and begin abusing your eardrums. :)
Re:Accoustic weapon in JavaScript
by robinduckett on Thursday May 12, 2011 @11:37AM
(#2540915)
Tried it in Chrome 13, the tab crashes immediately. Commented out the "new webkitAudioContext()" and the page loaded. :( I did enable the Web Audio in the flags.
Spec: https://chromium.googlecode.com/svn/trunk/samples/audio/spec... Mozilla API: https://wiki.mozilla.org/Audio_Data_API
NOTE: OSX, Chrome dev channel (12.0.733.0 dev is the version I wrote this in) w/ Web Audio API enabled is the only way this is going to work for you. Everyone else will have to wait until the API is implemented in your OS of choice.
Lastly, there are very _real_ dangers of exposure to high frequencies such as: hearing loss, nausea, dizziness and vertigo (to name a few). Running this code is your choice, so handle with care!
Now if you're on your gaming rig and you have a 300 - 400 watt subwoofer hooked up, I've got a couple of sound files that can give you cramps :-)
Here is a jsFiddle with the code.
Here is a jsFiddle with the code that actually works, or it would, if I had a browser that supported this that didn't crash the second I tried to do anything with it.
Doesn't actually point to anything in your fiddle.
Restart browser and it should work!
IE, is there a potential that upon activating the demo to become instantly incapacitated and unable to stop it?
So, yeah, it's safe.
braaaaaaiiiinnsssss
Can someone give a description of what's supposed to happen?
All it does is emits an adjustable frequency sine-tone.