TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Accoustic weapon in JavaScript

28 pointsby brianshumateabout 14 years ago

12 comments

drgathabout 14 years ago
If you were like... "Whoa! OMG, I didn't know browsers could do this?" It's a relatively newly implemented API.<p>Spec: <a href="https://chromium.googlecode.com/svn/trunk/samples/audio/specification/specification.html#JavaScriptAudioNode-section" rel="nofollow">https://chromium.googlecode.com/svn/trunk/samples/audio/spec...</a> Mozilla API: <a href="https://wiki.mozilla.org/Audio_Data_API" rel="nofollow">https://wiki.mozilla.org/Audio_Data_API</a>
评论 #2541141 未加载
rwaldronabout 14 years ago
Hey everyone! I wrote this little toy... I'm glad you're all enjoying it.<p>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.<p>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!
评论 #2542366 未加载
peregrineabout 14 years ago
<a href="http://jsfiddle.net/ktsum/" rel="nofollow">http://jsfiddle.net/ktsum/</a><p>Here is a jsFiddle with the code.
评论 #2540977 未加载
评论 #2540985 未加载
gmaster1440about 14 years ago
In Chrome, navigate to "about:flags" and enable Web Audio.<p>Restart browser and it should work!
评论 #2540862 未加载
gibersonabout 14 years ago
This may seem like a silly question, but is it safe to try at home? [especially if you live alone]<p>IE, is there a potential that upon activating the demo to become instantly incapacitated and unable to stop it?
评论 #2540981 未加载
BoppreHabout 14 years ago
Tested 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.<p>Can someone give a description of what's supposed to happen?
评论 #2541325 未加载
robinduckettabout 14 years ago
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.
bhermsabout 14 years ago
"Can't find variable webkitAudioContext" error in chrome, ff, and safari for me.
评论 #2541035 未加载
CaptainLurkabout 14 years ago
Sounds like birds chirping and a stream. Am I missing something?
评论 #2541835 未加载
kaichanvongabout 14 years ago
Try putting in 1 and just adding 0's :) Wonderful!
QQexeabout 14 years ago
works fine on winXP with Chrome 13 (Canary)
ltamakeabout 14 years ago
Creepy.