brandonH
10-03-2003, 09:59 PM
just wanting to know if it is possible to play 2 sounds at the same time, or start one and then playing another without the first one being turned off, in javascript or like scripting using IE6.
|
||||
javascript sound layering?brandonH 10-03-2003, 09:59 PM just wanting to know if it is possible to play 2 sounds at the same time, or start one and then playing another without the first one being turned off, in javascript or like scripting using IE6. zoobie 10-03-2003, 11:06 PM Yes...Try this: <EMBED SRC="sound1.wav" autostart="true" hidden="true" loop="false"> <EMBED SRC="sound2.mp3" autostart="true" hidden="true" loop="false"> Dunno why you'd want to hear 2 sounds at the same time 'cause it turns out garbled...Nevertheless, ytou can also mix 2 or 20 sounds in one file with an editor. Chitty bang bang we love youuuuuuuuuuuu. :D zoobie 10-03-2003, 11:08 PM Oh..you want to bloat...I mean play with js? Dunno :D brandonH 10-13-2003, 12:10 AM I am creating a game that uses audio files as an added effect. with this game i want to be able to play multiple sounds at one time without one turning off so the other one can play. I use the <embed> for all my sounds, which helps with loading, but i can still only play one sound at a time. for example, i have a timer for the game, when it reaches red, a sound file plays that says "hurry up" well this sounds is approx. 3-4 seconds long. but at the same time the player is clicking on images that when clicked on makes sounds them selves that are only .5-1 second in length. i dont want the " hurry up" sound being stop prematurly so that the click sound can play. i am currently using the script: <embed src='loser.mp3' autostart=false hidden=true loop=false MASTERSOUND> <script> function playS(snd){ document.all.base.src=snd}</script> i also tried the document.embeds[0].play(false); document.embeds[0].play(); but it doesnt wnat to work for me. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum