logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-30-2011, 04:07 PM   #1
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default Javascript onHover sound effect

Does anyone have a resource for a good old fashioned PLEASANT onHover sound effect? Talking about those very short, soft tick noises or something similar for the menu. Have found any and everything but so far...
Thanx!

site use is www.reflexms.com
johnMoss is offline   Reply With Quote
Old 03-30-2011, 10:22 PM   #2
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

OK I went ahead and just made one, I've loaded several scripts trying to get the sound to work. One that did work was calling the file from the server. So now pre-load is in order. I've found several of those also, which don't work. Me going wrong somewhere... Ideas / good resource for complete known good script?
johnMoss is offline   Reply With Quote
Old 03-31-2011, 01:24 AM   #3
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

OK, have that figured out... Now problem is the latency of the audio. Flash has a workaround, but has anyone come up with a way to either shorten the buffer or get rid of it completely in javascript?

effect can be heard at www.reflexms.com home page and just the home menu button is active...
johnMoss is offline   Reply With Quote
Old 03-31-2011, 01:30 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

i havent a clue but hopefully this will help

http://www.javascriptkit.com/script/...oundlink.shtml
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-31-2011, 01:48 AM   #5
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

That was a piece of code that wouldn't work for me, tried it already. No biggie though, I've found two that do. This latency thing has taken me as far as the R&D blogs at M.I.T. I'm still hangin' in there with JS on this as the newest entries I have come across are still at least two years old. Which as I write this leads me to suspect everyone simply bailed and went with flash for this type of app.
johnMoss is offline   Reply With Quote
Old 03-31-2011, 01:52 AM   #6
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

In continueum, MP3 gives the shortest latency at about 940 samples. WAV files are actually coming in at 2400 (!) I upped the sample rate to 96000 on the file (in soundbooth) but it didn't faze it. The file I have on the server is an mp3 at 36000.
johnMoss is offline   Reply With Quote
Old 03-31-2011, 02:03 AM   #7
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

sound on sites is a minority as well i would think so less interest generally
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-31-2011, 02:09 AM   #8
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

I know, I'm bein' a smarty pants on this one...
johnMoss is offline   Reply With Quote
Old 03-31-2011, 02:22 PM   #10
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

http://stackoverflow.com/questions/3...cript-in-audio

is an offshoot from the second link in the previous post. Second paragraph pretty well sums it up, gotta go flash for now. Mozilla is working on an advanced API, but the rest shall surely take an additional year to follow through. I guess the lesson here is with audio, its not just pre-load, it's pre-buffered as well. Apparently only Adobe has had the good sense to build that in to their players...
johnMoss is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com