5 ms·
Accoustic weapon in JavaScript
- bherms 15y ago"Can't find variable webkitAudioContext" error in chrome, ff, and safari for me.
- jarin 15y agoI got the same thing, but enabling Web Audio in about:flags fixed it.
- gmaster1440 15y agoIn Chrome, navigate to "about:flags" and enable Web Audio. Restart browser and it should work!
- robinduckett 15y agoYeah doesn't work in Chrome 11
- mkopinsky 15y agoYeah, I don't have a Web Audio flag in about:flags in Chrome 11 on Linux.
- drgath 15y agoIf you were like... "Whoa! OMG, I didn't know browsers could do this?" It's a relatively newly implemented API. Spec: https://chromium.googlecode.com/svn/trunk/samples/audio/specification/specification.html#JavaScriptAudioNode-section https://chromium.googlecode.com/svn/trunk/samples/audio/spec... Mozilla API: https://wiki.mozilla.org/Audio_Data_API https://wiki.mozilla.org/Audio_Data_API
- robinduckett 15y agoShame it doesn't work on Linux.
- rwaldron 15y agoNo kidding, especially considering this: http://lists.w3.org/Archives/Public/public-xg-audio/2011Feb/0000.html http://lists.w3.org/Archives/Public/public-xg-audio/2011Feb/...
- deleted 15y ago[deleted]
- kaichanvong 15y ago"Turn that off before I hit you," @jaylett
- kaichanvong 15y agoTry putting in 1 and just adding 0's :) Wonderful!
- CaptainLurk 15y agoSounds like birds chirping and a stream. Am I missing something?
- rwaldron 15y agochange the hz value... the higher you go, the more dangerous it is.
- giberson 15y agoThis may seem like a silly question, but is it safe to try at home? [especially if you live alone] IE, is there a potential that upon activating the demo to become instantly incapacitated and unable to stop it?
- peregrine 15y agohttp://jsfiddle.net/ktsum/ http://jsfiddle.net/ktsum/ Here is a jsFiddle with the code.
- robinduckett 15y agohttp://jsfiddle.net/RffRn/ http://jsfiddle.net/RffRn/ 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.
- peregrine 15y agoMy bad.
- drgath 15y ago<script src="audio-test.js"></script> Doesn't actually point to anything in your fiddle.
- robinduckett 15y agoTried 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.
- deleted 15y ago[deleted]
- ltamake 15y agoCreepy.
- BoppreH 15y agoTested with Chrome 11.0.696 (couldn't find the Web Audio flag), Opera 11.10, Firefox 6.0a1 and even Internet Explorer 9. No sound at all. Can someone give a description of what's supposed to happen?
- rwaldron 15y agoDoesn't work in Firefox, Opera or IE9. It's written with the Web Audio API available in Chrome on OSX (about:flags to enable) All it does is emits an adjustable frequency sine-tone.
- BoppreH 15y agoPeople have said it many times before, but there's no such flag in this version of Chrome (11.0.696). Is it OSX specific?
- coleGillespie 15y agoread rWaldons comment below...
- paulirish 15y agoIt'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. :)
- rwaldron 15y agohttp://news.ycombinator.com/item?id=2541317 http://news.ycombinator.com/item?id=2541317
- rwaldron 15y agoHey 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!
- ChuckMcM 15y agoHaving 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 :-)
- rwaldron 15y agoYou have the "brown note" on sound files? Nice!
- QQexe 15y agoworks fine on winXP with Chrome 13 (Canary)