...

View Full Version : Randomly play wave file



jameswsparker
11-15-2010, 11:49 PM
Hello geniuses. :thumbsup: :)

I really need your help and didn't know who else to turn to.

Using JavaScript, I require a code that allows me to play .wav sound files randomly and automatically on page start-up, I also need them to loop as they are drum beats.

The plan: to load my web page and hear a random drum beat that loops continuously.

I need it to be compatible with most, if not all Internet browsers (Chrome, Internet Explorer, Firefox and Opera are crucial) and to state what sound file is playing on the page (allowing me to identify the looping drum beat/sound file), and if possible to provide a link to the actual sound file for download.

I've tried endlessly trying to find code to build upon but have failed miserably, I would appreciate any code submissions as it would help me out massively.
It's a lot to ask I know, but it would be so very appreciated. :confused:
My knowledge with JavaScript is sadly minimal.

I've also got a quick question, how would I prevent Google Chrome from putting a pause after each sound loop? Of course, being drum beats; I require it to loop in sync and it appears only Google Chrome puts a 1 second period after each play. :(

Please help, I am so stuck.
Anyway guys, thanks for reading! :o

Old Pedant
11-16-2010, 12:03 AM
Answered in other thread.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum